emacs-devel
[Top][All Lists]
Advanced

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

Re: Using `call-process-shell-command' in `process-lines'


From: Eli Zaretskii
Subject: Re: Using `call-process-shell-command' in `process-lines'
Date: Tue, 27 Nov 2007 00:17:54 +0200

> Date: Tue, 27 Nov 2007 00:04:02 +0200
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden
> 
> > >>    find -name *l.el
> > >>    find -name m*.el
> > >>    find -name "*.el"
> > > 
> > > Sheer luck, the first tow ones.  You _must_ quote the wildcard to get
> > > predictable behavior.

To give you a hint: whether unquoted wildcards work or not depends on
whether files in the directory where you run the above commands do or
do not have files that match the wildcards you give to `find'.  That's
because the startup code which tries to expand wildcards leaves them
intact if they don't match anything in the current directory, which
has the same effect as quoting them.

Take for example the following command:

  find c:/emacs -name *l.el

Assuming c:/emacs is the root of the Emacs source tree, try to type
this once from the c:/emacs/lisp directory and then from a directory
that doesn't have any *.el files, and you will see different behavior
(the first one should err out).

That's why I said that you _must_ quote wildcards to get predictable
behavior from `find'.




reply via email to

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