On 09/30/2014 09:14 AM, Olof Johansson wrote: > On 2014-09-30 09:01 -0600, Eric Blake wrote: >> $ dash -c 'unset "a|b" >> $ echo $? >> 0 > > Works for me (tested on both Debian package versions 0.5.7-3 (wheezy) > and 0.5.7-4 (unstable)): Serves me right from testing on multiple machines :( I mixed up my test results. Fedora 20 using dash 0.5.7 works: $ dash -c 'unset "a|b"' dash: 1: unset: a|b: bad variable name $ rpm -q dash dash-0.5.7-8.fc20.x86_64 But RHEL 6 fails: $ dash -c 'unset "a|b"' $ rpm -q dash dash-0.5.5.1-4.el6.x86_64 so this is at least one bug that has already been fixed upstream. >> $ env 'a|b=' dash -c 'set | grep a"."b' >> a|b='' > > This I can reproduce though. Meanwhile, I just tested the latest dash.git (commit f21016a12) and this behavior is no longer present: $ env 'a|b=' ./src/dash -c 'set | grep a"."b' so it has also been fixed in the meantime. Sorry for not doing my homework; nothing to fix here... -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature