|
From: | Lennart Borgman (gmail) |
Subject: | Re: Using `call-process-shell-command' in `process-lines' |
Date: | Mon, 26 Nov 2007 22:23:18 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
Eli Zaretskii wrote:
Date: Mon, 26 Nov 2007 22:08:17 +0100 From: "Lennart Borgman (gmail)" <address@hidden> CC: address@hidden, address@hidden, address@hidden(apply #'call-process "find.exe" nil (get-buffer-create "output") nil (list "c:/emacs-lisp/old/" "-name" (shell-quote-argument "*.el" )))Yes, sorry; I tried to correct myself in another message.but it does not work AFAICS.??? It does for me.It doesn't for mePlease describe how it fails.
(apply #'call-process "find.exe" nil (get-buffer-create "output") nil (list "c:/emacs-lisp/old/" "-name" (shell-quote-argument "*.el" ) )) gives nothing in the "output" buffer and returns 0. (apply #'call-process "find.exe" nil (get-buffer-create "output") nil (list "c:/emacs-lisp/old/" "-name" "m*.el" )) gives the correct output and returns 0. (apply #'call-process "find.exe" nil (get-buffer-create "output") nil (list "c:/emacs-lisp/old/" "-name" "*.el" )) gives the error "paths must precede expressions" and returns 1. (apply #'call-process "find.exe" nil (get-buffer-create "output") nil (list "c:/emacs-lisp/old/" (shell-quote-argument "-name") (shell-quote-argument "*.el" ) )) matches all files (not only *.el) and returns 1.
[Prev in Thread] | Current Thread | [Next in Thread] |