bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9792: 24.0.50; process-file and space in filename


From: Eli Zaretskii
Subject: bug#9792: 24.0.50; process-file and space in filename
Date: Fri, 21 Oct 2011 09:53:58 +0200

> From: Leo <sdl.web@gmail.com>
> Date: Fri, 21 Oct 2011 09:27:29 +0800
> 
> On 2011-10-20 19:00 +0800, Eli Zaretskii wrote:
> > The problem happens when both of the following conditions are true:
> >
> >   . the command being invoked is a batch file (git.cmd in this case)
> >
> >   . the directory where it lives included parentheses
> 
> Thanks for looking into this.
> 
> But (apply 'process-file "git" nil t nil '("--no-pager" "log")) does not
> fail.

Sheer luck.  cmd.exe has all kind of fragile heuristics built into it,
when quotes are present on the command line; sometimes it works,
sometimes it doesn't.

In my testing, I put an ls.cmd in such a directory that called the
real ls.exe, and saw it sometimes work, sometimes not, depending on
what were the command-line arguments.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]