#805373 interactive posh mishandles SIGQUIT and SIGTERM signals

Package:
posh
Source:
posh
Description:
Policy-compliant Ordinary SHell
Submitter:
Vincent Lefevre
Date:
2015-11-17 14:06:04 UTC
Severity:
normal
#805373#5
Date:
2015-11-17 13:24:12 UTC
From:
To:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html
says:

  If the shell is interactive:
    SIGQUIT and SIGTERM signals shall be ignored.

If I type "foo", then Ctrl-\, then "bar", I get:

$ foo^\
$ bar
posh: bar: not found

which is wrong.

If I type "foo", then send a SIGQUIT or a SIGTERM with a "kill -QUIT"
or "kill -TERM" from another shell, then type "bar", I get:

$ foo
$ bar
posh: foobar: not found

The behavior is now OK except that a new prompt should not be
displayed when the SIGQUIT/SIGTERM signal is received.

#805373#10
Date:
2015-11-17 14:02:37 UTC
From:
To:
Looks like inittraps() needs some cleanup.