Thought I'd add my two cents on this one -- I've been wrestling with this one for a little while now, and stumbled across this bug. Thank $DEITY *someone* identified it. I've modified my shebang to read #!/bin/bash and lo! it works again.
This has been going on for a while, and it's stumping all sorts of people: it's even ended up on LKML: http://www.gossamer-threads.com/lists/linux/kernel/1297147 Kudos to Andreas Mohr for figuring the workaround. Aurelien's test case also exhibits the problem (both in the script working with /bin/bash and not with /bin/dash), and as an added bonus I've removed the sudo calls and run the test case as root, and I can't get it to play up, suggesting that sudo is at least a contributing factor (if not the actual source of the bug). It's a tricky one, that's for sure. - Matt -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org