Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zparseopts change (Re: PATCH: Re: _netscape)
- X-seq: zsh-workers 11535
 
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
 
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>,        zsh-workers@xxxxxxxxxxxxxx
 
- Subject: zparseopts change (Re: PATCH: Re: _netscape)
 
- Date: Tue, 23 May 2000 14:43:10 +0000
 
- In-reply-to: <200005231315.PAA24546@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
 
- References: <200005231315.PAA24546@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
 
On May 23,  3:15pm, Sven Wischnowsky wrote:
} Subject: Re: PATCH: Re: _netscape
}
} +The tt(-E) option allows to extract the options described by the
} +var(specs) from the positional parameters, ignoring all other strings.
Could you make that just a little bit more verbose, please?  What does
"extract" mean?  How does "ignoring" affect the parsing?  E.g.,
	set -- -a x -b y -c -d z -- -e foo bar -f end
	zparseopts -a try1 b:
	zparseopts -a try2 a
	zparseopts -a try3 a: b: c
	zparseopts -a try4 a: b: c d: e:
	zparseopts -E -a try5 b: c d: e:
	zparseopts -E -a try6 a: b: c d: e: -
	echo try1 = $try1		# Parses nothing
	echo try2 = $try2		# Stops at x
	echo try3 = $try3		# Stops at -d
	echo try4 = $try4		# Stops at --
	echo try5 = $try5		# Does what?  Why?
	echo try6 = $try6		# Does what?  Why?
I could find out by trial-and-error, but should I have to?
-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author