sh -c 'kill -SIGTERM $$' -> 'invalid signal specification'
From:
Tim Waugh
Subject:
sh -c 'kill -SIGTERM $$' -> 'invalid signal specification'
Date:
Fri, 18 Mar 2005 14:45:15 +0000
User-agent:
Mutt/1.4.2.1i
With bash-3.0.14, this command:
sh -c 'kill -SIGTERM $$'
gives this error:
sh: line 0: kill: SIGTERM: invalid signal specification
The man page for bash says that 'sigspec is either a case-insensitive
signal name such as SIGKILL (with or without the SIG prefix)'.
Should the documentation be corrected to mention that, if invoked as
sh, the shell will not recognise the SIG prefix for the kill builtin?
Tim.
*/