On Wed, Oct 16, 2013 at 10:17:26AM -0400, 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. Thanks for your answer and also for the answers of Guido Berhoerster and Eric Blake. That's correct, my assumption was wrong. I'll try to use the cat << trick, let's see if that works, I won't assume anything at the moment ;) Also thanks for the hint regarding posh, I didn't know that. Kind regards, -Alex -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html