From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Using `call-process-shell-command' in `process-lines' Date: Tue, 27 Nov 2007 00:17:54 +0200 Message-ID: References: <474B022C.8040508@gmail.com> <474B257F.3050709@gmail.com> <474B39D7.3010509@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1196115512 16119 80.91.229.12 (26 Nov 2007 22:18:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2007 22:18:32 +0000 (UTC) To: lennart.borgman@gmail.com, lekktu@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 26 23:18:38 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IwmHm-0007zv-Dq for ged-emacs-devel@m.gmane.org; Mon, 26 Nov 2007 23:18:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwmHX-00047D-6B for ged-emacs-devel@m.gmane.org; Mon, 26 Nov 2007 17:18:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwmHC-0003mL-3w for emacs-devel@gnu.org; Mon, 26 Nov 2007 17:18:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwmHB-0003lI-66 for emacs-devel@gnu.org; Mon, 26 Nov 2007 17:18:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwmHB-0003kx-0P for emacs-devel@gnu.org; Mon, 26 Nov 2007 17:18:01 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IwmHA-0004Ja-JJ for emacs-devel@gnu.org; Mon, 26 Nov 2007 17:18:00 -0500 Original-Received: from HOME-C4E4A596F7 ([81.5.42.135]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EFO47860 (AUTH halo1); Tue, 27 Nov 2007 00:17:51 +0200 (IST) In-reply-to: (message from Eli Zaretskii on Tue, 27 Nov 2007 00:04:02 +0200) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84189 Archived-At: > Date: Tue, 27 Nov 2007 00:04:02 +0200 > From: Eli Zaretskii > Cc: lekktu@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org > > > >> 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'.