Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"." not recognising "--" as the end-of-options
- X-seq: zsh-workers 25936
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: "." not recognising "--" as the end-of-options
- Date: Tue, 28 Oct 2008 16:43:19 +0000
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hiya,
$ zsh -c '. -- --help'
zsh:.:1: no such file or directory: --
$ ARGV0=sh zsh -c '. -- --help'
zsh:.:1: no such file or directory: --
The handling of "--" is mandated by POSIX I beleive.
With ksh, pdksh, bash you have to use:
. -- "$1"
if you can't guarantee that "$1" won't start with a "-".
Unfortunately, that code doesn't work with zsh at the moment.
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author