emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: PC-do-completion with directories adding stars.]


From: Michael Cadilhac
Subject: Re: address@hidden: PC-do-completion with directories adding stars.]
Date: Mon, 06 Mar 2006 22:01:43 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>
>> !     (shell-command (concat "for f in " name "; do test -e \"$f\" && echo 
>> \"$f\"; done") t)
>
> Problem is that this will fail depending on the user's shell (zsh vs tcsh
> vs bash vs rc vs ...).

  Well, can't we just do something like

  (let ((shell-file-name "sh"))
     (shell-command ...))

   Or directly use (call-process "sh" ...)  to make sure we have
   a Bourne compatible shell ?

   Maybe there's an issue with Windows, I don't know.

-- 
    Michael Cadilhac, a.k.a. Micha [mika] |
                    Epita/LRDE promo 2007 |   )\._.,--....,'``.
123 av. de Fontainebleau | 08.70.65.13.14 |  /.  _.. \   _\  (` ._,.
94270 Le Kremlin Bicetre | 06.23.20.31.30 | '._.-(,_..'--(,_...`-..'




reply via email to

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