delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
connect(): | No such file or directory |
From: | Oleksandr Gavenko <gavenko AT bifit DOT com DOT ua> |
Subject: | Re: Why call-process removes '{' and '}' chars from arguments??? |
Date: | Thu, 03 Jun 2010 10:46:34 +0300 |
Lines: | 80 |
Message-ID: | <hu7mkr$p04$1@dough.gmane.org> |
References: | <hu6fkl$h98$1 AT dough DOT gmane DOT org> <83wruhru5j DOT fsf AT gnu DOT org> |
Mime-Version: | 1.0 |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 |
In-Reply-To: | <83wruhru5j.fsf@gnu.org> |
Cc: | help-gnu-emacs AT gnu DOT org |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 2010.06.03 0:39, Eli Zaretskii wrote: >> From: Oleksandr Gavenko<gavenkoa AT gmail DOT com> >> Date: Wed, 02 Jun 2010 23:40:46 +0300 >> >> I use Emacs 23.2 under Windows. >> >> (call-process >> "echo.exe" >> nil (get-buffer "*Messages*") nil >> "--bla" "{rev}" "}}}xxx{1}xxx{2}xxx{{{" ) >> >> put in Message buffer >> >> "--bla rev }}}xxx1xxx2xxx" >> >> so remove occurrences of "{" and "}". Why??? > > I cannot reproduce this in Emacs 23.2 on MS-Windows. I get the > expected result: > > --bla {rev} }}}xxx{1}xxx{2}xxx{{{ > > What kind of port of which program is your echo.exe? What happens if > you invoke the same command from the shell? > Futher info: I wrote simple C prog - printarg.c with: int main(int argc, char **argv) { for (int i = 0; i < argc; i++) printf("\"%s\"\n", argv[i]); return 0; } When I compile it with CC=gcc # resulted executable depend on cygwin1.dll (call-process "printarg.exe" nil (get-buffer "*Messages*") nil "--bla" "{rev}" "}}}xxx{1}xxx{2}xxx{{{" ) return "/home/user/usr/bin/printarg" "--bla" "rev" "}}}xxx1xxx2xxx" When I compile it with CC=i686-pc-cygwin-gcc-3 -mno-cygwin # resulted executable *NOT* depend on cygwin1.dll call-process return "d:\home\usr\bin\printarg.exe" "--bla" "{rev}" "}}}xxx{1}xxx{2}xxx{{{" Also interesting that from Cygwin bash argument successful passed to printarg: bash# ldd `which printarg` ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll cygwin1.dll => /usr/bin/cygwin1.dll ADVAPI32.DLL => /cygdrive/c/WINDOWS/system32/ADVAPI32.DLL RPCRT4.dll => /cygdrive/c/WINDOWS/system32/RPCRT4.dll Secur32.dll => /cygdrive/c/WINDOWS/system32/Secur32.dll cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll bash# printarg {}{}{{{{}}}{}}}{{} {rev} "printarg" "{}{}{{{{}}}{}}}{{}" "{rev}" GNU Emacs 23.2 from ftp.gnu.org - release build with mingw. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |