Dash does not behave well when under artificial fd pressure due to ulimit -n. It insists on copying a to-be-closed fd to another fd greater than 10, then complains when the dup fails, rather than just flat-out closing the fd in the first place. Compare this with ksh93 $ ksh -c 'ulimit -n 10; : <&-'; echo $? 0 $ dash -c 'ulimit -n 11; : <&-'; echo $? 0 $ dash -c 'ulimit -n 10; : <&-'; echo $? dash: 0: Invalid argument 2 See this thread on the bug-tar list for more details: http://thread.gmane.org/gmane.comp.gnu.tar.bugs/4010/focus=4020 -- Eric Blake eblake@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature