reassign 971880 dash affects 971880 debianutils # focal on WSL 1 found 971880 0.5.10.2-6 # clean sid chroot found 971880 0.5.10.2-7 retitle 971880 dash: fails to treat export as declaration utility, making savelog fail with spaces in $PATH thanks
Dixi quod… >named 20.04 "focal" running under WSL 1, but it will certainly apply >to plain Debian as well. It does, the failure in savelog is actually this: 83 export PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin This is caused by a failure in /bin/sh (here, dash) which is reproducible in a clean Debian sid chroot: (pbuild15335-sid/amd64)root@tglase-nb:/# a='b /c/d' (pbuild15335-sid/amd64)root@tglase-nb:/# export a (pbuild15335-sid/amd64)root@tglase-nb:/# dash -c 'export a=$a:foo' dash: 1: export: /c/d:foo: bad variable name This violates the POSIX resolution about declaration utilities (like export and readonly) and declaration utility forwarders (command) which are detailled in mksh’s manpage. The formal text the Austin Group decided on in 2011 is available at: https://www.austingroupbugs.net/view.php?id=351#c943 bye, //mirabilos -- „Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund, mksh auf jedem System zu installieren.“ -- XTaran auf der OpenRheinRuhr, ganz begeistert (EN: “[…]uhr.gz is a reason to install mksh on every system.”)