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

Re: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures)



On Apr 9,  5:45pm, Peter Stephenson wrote:
}
} > Re-read the comment: "this leaves the unquoted substrings unsplit."  If
} > you turn off spbreak there, then ${=1+some words here} becomes broken.
} 
} No, it doesn't, because that uses (spbreak = 2), hence the test.

Sorry, I was writing in shorthand for:

setopt shwordsplit
for x in ${1-some words here}; do echo $x; done

It's not sufficient just to twaddle spbreak -- it's necessary to actually
parse the string and interpret quoting, but I think by the time multsub
is done the quotes have already been stripped out.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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