On 11/17/2011 09:17 AM, Heiko Gerstung wrote: > What this tiny patch does: > - shift does not return a critical error when no arguments are left, it simply does nothing This came up in the Austin Group (the folks in charge of POSIX), and the consensus there was that dash is compliant (POSIX says that the problem is with the script, not the shell, if you call shift with too few positional parameters set; and that you should rewrite your script to avoid tickling unspecified behavior). http://austingroupbugs.net/view.php?id=459 > - "[[" works exactly as "[" Wrong. [[ is NOT exactly like [. And the Austin Group is currently considering a proposal to add [[ to the shell (if that is done, then dash will HAVE to implement it as specified by POSIX; but the jury's still out on whether the proposal will be accepted): http://austingroupbugs.net/view.php?id=375 > - "==" works like "=" That same Austin Group proposal is also talking about adding [ a == b ]; this particular addition is much less controversial than the [[ addition, so it is likely that the proposal will be split and each separate addition individually balloted for inclusion. > - the variable FUNCNAME contains the name of the currently running shell function or nothing (when not inside a function) That's fluff - POSIX doesn't speak either way, and dash prefers to be as light as possible when POSIX doesn't require it, so I'm not sure if you'll get any enthusiastic response on this front. -- Eric Blake eblake@xxxxxxxxxx +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature