Bug#3177: sh -nc <command> actually runs command (!)
Package: bash
Version: 1.14.6-4
The command
sh -nc date
actually runs 'date'. Although the bash man page says that -n is ingored for
interactive shells, this is arguably an error (particularly when this
construct appears inside another sh script). Several other sh's I checked
don't run the command in this situation.
This behavior is breaking the behavior of the enslave command in the
mandelspawn package, and could potentially be effecting other parts of the
Debian system.
(I've also submitted this upstream via bashbug.)
Thanks,
--Mike
Reply to: