[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /bin/sh diversions

[Oleg Verych]
> Not quoting possible empty argument is a script writing bug.

Not when you use [[.  This is exactly how [[ is supposed to work; it is
explicitly defined to be shell syntax, as opposed to a builtin command,
so it is allowed to "cheat" with argument quoting.  If you don't like
that, don't use [[ ... but if you're going to implement it, implement
it correctly.  A simple alias to [ is not correct.
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/

Attachment: signature.asc
Description: Digital signature

Reply to: