From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: Using `call-process-shell-command' in `process-lines' Date: Mon, 26 Nov 2007 18:01:23 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196096831 12861 80.91.229.12 (26 Nov 2007 17:07:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2007 17:07:11 +0000 (UTC) Cc: Emacs Devel To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 26 18:07:17 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 1IwhOn-0004x1-7t for ged-emacs-devel@m.gmane.org; Mon, 26 Nov 2007 18:05:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwhOY-0007hP-3F for ged-emacs-devel@m.gmane.org; Mon, 26 Nov 2007 12:05:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwhKq-0005Ss-7Y for emacs-devel@gnu.org; Mon, 26 Nov 2007 12:01:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwhKo-0005SF-Gb for emacs-devel@gnu.org; Mon, 26 Nov 2007 12:01:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwhKn-0005S8-Kc for emacs-devel@gnu.org; Mon, 26 Nov 2007 12:01:25 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.179]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IwhKn-0001Q9-3f for emacs-devel@gnu.org; Mon, 26 Nov 2007 12:01:25 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so865691wah for ; Mon, 26 Nov 2007 09:01:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=W5+uvbu0G0KUfd+CDbHSlUcDuxCdhAHhrASWQsSMa28=; b=YXs622A1jQB2j0bbSiyg2VVveJBJhjjZttrmNh1/u3ONNq2mz9d+fwojzzipQnpu6FBR+ucEvAxMHpvLvuko6g+aqmaRuPKjWpM5RBm222cyUtrv6h8vKdqj9EqWPkFgRTJk+zB5XCL0EoloukVW6GfRO0HA2lR3FNvGZauOUyY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=beBe3SiKs18Rc6go6hilZb+Rmn9Qk86b0bMyHGYV0mSe2dAYUa7rYqNU3T8Jqdlt7IxxeruYkYuTuNU0Zmznn55RS6YzEd6Mas2X1J8JWJu5IwfyVlvbJ0lztManH02Y7MtcQHedk32CTbaLnQ/Jdir9XTN8NteeQyJTBMnohcA= Original-Received: by 10.114.75.1 with SMTP id x1mr37266waa.1196096483690; Mon, 26 Nov 2007 09:01:23 -0800 (PST) Original-Received: by 10.114.168.11 with HTTP; Mon, 26 Nov 2007 09:01:23 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 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:84150 Archived-At: On Nov 26, 2007 5:43 PM, Stefan Monnier wrote: > > process-lines: c:/bin/gnuwin32/bin/find.exe exited with status 1 > > process-lines: c:/bin/msys/bin/find.exe exited with status 1 > > > This is with MSYS' find ("GNU find version 4.1") and GnuWin32's find > > ("GNU find version 4.2.20"). > > I have no idea what this means. Could you expand on it? I'm not sure what are you referring to. check-declare-directory calls find. I've tested it with GNU find, versions 4.1 (the one included with the newest release of MSYS, which itself is related to MinGW, see http://www.mingw.org) and version 4.2.20 (the one in the GnuWin32 project, see http://gnuwin32.sourceforge.net). Both fail. If I manually execute (apply #'call-process "c:/bin/gnuwin32/bin/find.exe" nil (get-buffer-create "output") nil '("c:/emacs/trunk/lisp/" "-name" "*.el")) I get: c:\bin\gnuwin32\bin\find.exe: paths must precede expression Usage: c:\bin\gnuwin32\bin\find.exe [-H] [-L] [-P] [path...] [expression] or /usr/bin/find: paths must precede expression Usage: /usr/bin/find [path...] [expression] > Why would you want to wrap them? They're not passed to a shell! Passing "*" or "*.el" to -name fails as above. Passing ".el" or almost anything else finishes (with 0 and no files). So there's something fishy with the wildcard. Juanma