On 03/17/2017 07:21 PM, Stephane Chazelas wrote: >> The problem is the non-obvious nature of unset's interaction with scope, > > the main problem to me is an unset command that doesn't unset. > > As shown in my original post, there's also a POSIX conformance > issue.
As POSIX has not yet specified 'local', any use of 'local' already renders the script non-conformant, so it shouldn't matter what bash does in that situation (although if POSIX is ever going to standardize 'local', it requires some concerted effort to make all shells with 'local' to settle on a lowest common denominator). -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature