Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "getopts" bugs and bad interactions with "shift"



Don't have any real opinion on this getopts business, just want to ask 
a question...

Bart Schaefer wrote:

> ...
> 	shift $OPTIND	# $((OPTIND-1)) if 3.0.7 or before
> ...
> 	return $ret

I think, when *you* do this kind of stuff, you have a good reason, so:
why the `$'s (and even `$((...))')? Compatibility with other shells?

Bye
 Sven

P.S.: They both matheval() their arguments...

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author