Turns out that dash 0.5.4-12 is NOT affected. Re-upgrading to current 0.5.5.1-7.4 package then makes it lock up again.
Non-sudo-prefixed lines (e.g. tested via echo, ls, find, ...) in the script work fine, it's specifically sudo-based commands which are problematic. Note that manually executing a test script such as #!/bin/sh /usr/bin/sudo echo Hi /usr/bin/sudo whoami does terminate properly, when executed as the same user that kvm would execute the scripts as (and when indeed having dash-as-sh). Thus it appears that _something_ about the way that kvm sets up its startup shell scripts context makes things break, i.e. within kvm only. Thus I'm keeping this bug filed under qemu-system instead of reassign dash 0.5.5.1-7.4, for now. Thanks, Andreas Mohr -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org