Bug#708634: mksh doesn't ignore SIGINT when running a command that traps SIGINT, should implement WCE

2013-05-17 Thread Vincent Lefevre
Package: mksh
Version: 46-1
Severity: normal

When running a command that traps SIGINT, mksh doesn't ignore SIGINT.
It should implement WCE (like bash and ksh93), as described on:

  http://www.cons.org/cracauer/sigint.html

To reproduce the bug:

  mksh -c gdb; echo OK

and type Ctrl-C (trapped by gdb), then Ctrl-D to quit gdb. OK is not
output and echo $? outputs 130 instead of 0.

With this bug, mksh shouldn't be a /bin/sh candidate, as this bug can
yield spurious command failure when executed with system().

Note that due to a mksh optimization, the bug does not appear when
there is a single command: in such a case, the shell does not fork,
but executes the command, replacing it, so that the shell is no longer
involved.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'oldstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mksh depends on:
ii  libc62.17-3
ii  libgcc1  1:4.8.0-7

mksh recommends no packages.

Versions of packages mksh suggests:
ii  ed  1.8-1

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#708634: mksh doesn't ignore SIGINT when running a command that traps SIGINT, should implement WCE

2013-05-17 Thread Thorsten Glaser
severity 708634 wishlist
tags 708634 upstream
forwarded 708634 https://bugs.launchpad.net/mksh/+bug/1064726
thanks

Vincent Lefevre dixit:

It should implement WCE (like bash and ksh93), as described on:

This is a duplicate of an existing upstream wishlist bug:
https://bugs.launchpad.net/mksh/+bug/1064726

/usr/share/doc/mksh/README.Debian.gz explicitly points there…
I do not like this duplication. But anyway, now it’s there.

The issue is known, it’s not a bug but an enhancement request,
and patches that do *not* break any existing behaviour are
welcome (it’s definitely not trivial). It’s not needed for
otherwise working operation of the shell, hence low severity.

bye,
//mirabilos
-- 
15:39⎜«mika:#grml» mira|AO: mit XFree86® wär’ das nicht passiert - muhaha
15:48⎜thkoehler:#grml also warum machen die xorg Jungs eigentlich alles
kaputt? :)15:49⎜novoid:#grml thkoehler: weil sie als Kinder nie den
gebauten Turm selber umschmeissen durften?  -- ~/.Xmodmap wonders…


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org