Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: handling spaces in variables



On 2007-04-26 at 18:07 -0700, Alexy Khrabrov wrote:
>  I'm running zsh on MacOSX,

That might be your user shell, but that doesn't mean /bin/sh is zsh.
Unfortunately, when I check, something is setting SHELL to the shell
from the user database.  Bah!

>  #!/bin/sh

Change that to #!/bin/zsh

After that, you'll have zsh behaviour.  Which, by default, does *NOT*
split on whitespace the way that every other shell does.  Making zsh
especially nice on MacOS.

-Phil



Messages sorted by: Reverse Date, Date, Thread, Author