zsh-users
 help / color / mirror / code / Atom feed
* zparseopts and longopts
@ 2016-05-12 11:16 Atte Peltomaki
  2016-05-13 11:25 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Atte Peltomaki @ 2016-05-12 11:16 UTC (permalink / raw)
  To: zsh-users

Howdy hackers,

I'm seeing erratic behaviour when using zparseopts together with GNU
long options which have additional dashes and the first part before the
dash is common. Example:

---clip---
#!/bin/zsh
zparseopts -E -D -- -gnu:=gnu -gnu-tard:=gnutard
print -- $gnu\\n$gnutard
---clap---

Executing as intended:

% ./test.zsh --gnu argh --gnu-tard rms
--gnu argh
--gnu-tard rms

Executing with imaginary new option:

% ./test.zsh --gnu argh --gnu-tard rms --gnu-tard-added-even-longer-opt whyohwhy
--gnu argh
--gnu-tard -added-even-longer-opt

-- 
Atte Peltomäki
     atte.peltomaki@iki.fi <> http://kameli.org
"Your effort to remain what you are is what limits you"


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

end of thread, other threads:[~2016-05-15 15:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-12 11:16 zparseopts and longopts Atte Peltomaki
2016-05-13 11:25 ` Bart Schaefer
2016-05-15 15:06   ` Atte Peltomaki

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).