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

Re: script help



First thanks, I used ${=cmd} and it worked.

On Sat, Dec 8, 2012 at 10:09 AM, Aaron Schrab <aaron@xxxxxxxxxx> wrote:
> At 06:15 -0500 08 Dec 2012, shawn wilson <ag4ve.us@xxxxxxxxx> wrote:
>>
>> this is in my .zshrc file and it fails to execute $cmd with:
>> vim:45: no such file or directory: /usr/local/bin/vim --servername SWILSON
>
>
> Normally zsh doesn't split the result of variable expansion into separate
> words.

I don't think I understand this. how is a string different from zsh
splitting a variable up (I'm guessing an array based on ${=cmd})? And
I'm guessing this is different from how bash handles this?



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