Package: posh
Version: 0.6.18
Severity: normal

The following behavior is incorrect, and can break scripts,
in particular if posh is used as /bin/sh.

xvii% posh -c 'set -e; (false); echo here' || echo OK
here

FYI, ksh93, bash and zsh behave correctly:

xvii% ksh93 -c 'set -e; (false); echo here' || echo OK
OK
xvii% bash -c 'set -e; (false); echo here' || echo OK
OK
xvii% zsh -c 'set -e; (false); echo here' || echo OK
OK

dash has the same problem as posh (bug 514863, grouped with another
similar dash bug).

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages posh depends on:
ii  debconf [debconf-2.0]         1.5.27     Debian configuration management sy
ii  libc6                         2.9-26     GNU C Library: Shared libraries

posh recommends no packages.

posh suggests no packages.

-- debconf information:
  posh/sh: false





-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to