bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#12423: 24.2; call-process doesn't take a default-directory into acco


From: Glenn Morris
Subject: bug#12423: 24.2; call-process doesn't take a default-directory into account
Date: Wed, 12 Sep 2012 12:07:47 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Dmitry Neverov wrote:

> It seems like call-process doesn't take default-directory into account
> although documentation says it should. The following always lists files
> in the root, not in the /home:
>
> (let ((default-directory "/home"))
>   (call-process "ls" nil t t))

You've fallen afoul of this:

  C-h v default-directory -> "Should end with slash."

So:

 (let ((default-directory (file-name-as-directory "/home")))
   (call-process "ls" nil t t))





reply via email to

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