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

Re: handling spaces in variables



Phil -- fantastic, thanks a lot!  BTW, I reformat all of my mac
drives, including the main one in my MacBook, as HFSX, case-sensitive,
journaled.  That allows for nice zsh and generally Unix-like behavior.

Cheers,
Alexy

On 4/26/07, Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
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