bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh -c 'kill -SIGTERM $$' -> 'invalid signal specification'


From: Chet Ramey
Subject: Re: sh -c 'kill -SIGTERM $$' -> 'invalid signal specification'
Date: Fri, 18 Mar 2005 10:33:29 -0500
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

Tim Waugh wrote:
> 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?

Since the behavior is as it stands because of Posix requirements, it
appears that I should copy the posix mode section of the texinfo manual
to the man page.  After all, it's not long enough now.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]