On 10/16/2013 08:17 AM, Chet Ramey wrote: > On 10/16/13 8:18 AM, Alexander Huemer wrote: >> Hi, >> >> I wrote a shell script on a non-Debian system and assumed, in my >> greenness, that testing it with #!/bin/bash --posix would ensure that >> the script would run under dash too. I was wrong. Of course that is the >> fault of bash and not dash. > > Maybe you should have verified your assumptions first. That is simply not > what the --posix option does. Posix mode makes bash a superset of Posix; > it's not a nothing-but-what-posix-specifies mode. If you want a shell that does nothing-but-what-posix-specifies, use posh from the Debian project. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org