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

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

Re: non-interactive shell


From: Eli Zaretskii
Subject: Re: non-interactive shell
Date: Sun, 23 Mar 2008 06:20:20 +0200

> Date: Sat, 22 Mar 2008 19:27:04 -0600
> From: "B. T. Raven" <nihil@nihilo.net>
> 
> Apparently it's not possible to make a new directory with:
> 
>   (shell-command (concat "md " path))
> 
> where path is some string like
> 
> "\\a\\b\\c"

It works for me.  What happened on your machine, and which version of
Emacs did you use?

> Is it possible at all to make a directory under the default-directory 
> with elisp and using a variable rather than a literal string.

Of course, it is.  But I'd suggest to use Emacs primitives instead of
an external command:

  (make-directory path t)




reply via email to

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