zsh-workers
 help / color / mirror / code / Atom feed
* "." not recognising "--" as the end-of-options
@ 2008-10-28 16:43 Stephane Chazelas
  2008-10-28 21:49 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Stephane Chazelas @ 2008-10-28 16:43 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-29 11:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-28 16:43 "." not recognising "--" as the end-of-options Stephane Chazelas
2008-10-28 21:49 ` Peter Stephenson
2008-10-29 11:11   ` Stephane Chazelas

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).