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)
- X-seq: zsh-workers 16954
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>, zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures)
- Date: Tue, 9 Apr 2002 18:09:04 +0000
- In-reply-to: <24213.1018370734@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <24213.1018370734@xxxxxxx>
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