Lisp HUG Maillist Archive

space in paths

Hello,

I am trying to invoke shell commands with (sys:open-pipe ...) on OSX.

If I have a "new folder" somewhere on my disk, what do I have to do to 
'encode' the space char in the command string?

Trying to do "new\ folder" like in the Terminal does not seem to 
work....

Any hints?

Thanks,

	Peter


Re: space in paths

On Mon, 9 Feb 2004 11:31:32 +0100, mod13@onlinehome.de wrote:

> I am trying to invoke shell commands with (sys:open-pipe ...) on
> OSX.
>
> If I have a "new folder" somewhere on my disk, what do I have to do
> to 'encode' the space char in the command string?
>
> Trying to do "new\ folder" like in the Terminal does not seem to
> work....
>
> Any hints?

Did you make sure to use two backslashes? One is for Lisp to escape
the second backslash, otherwise you're just escaping the space which
does nothing.

Alternatively, you could surround the file's name with single quotes.

Edi.


Updated at: 2020-12-10 08:57 UTC