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

RE: PATCH: Re: More incompatibility (word splitting)



> 
> Here's the patch as I'm willing to commit it right now.  I'm going to be
> out of town all next week, so I'm not going to be able to mess with it
> any further, and I don't want to put something really broken into CVS
> right before I disappear.
>

Does it really fix two described incompatibilities? O

bor@itsrm2% Src/zsh
bor@itsrm2% setopt shwordsplit 
bor@itsrm2% foo=$'foo\nbar'
bor@itsrm2% print "$foo"
foo
bar
bor@itsrm2% bar=${1-$foo}
bor@itsrm2% print "$bar"
foo bar   <= wrong
bor@itsrm2% set "a b c" 1 2
bor@itsrm2% print -l ${1+"$@"}
a
b
c
1
2
bor@itsrm2% exit

-andrej



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