Package: posh
Version: 0.6.15
Severity: normal

The command

  posh -c 'set -e; ! true; echo OK'

fails to output OK, thus does not conform to POSIX:

   -e When this option is on, if a simple command fails for any of the
      reasons listed in Section 2.8.1 (on page 2315) or returns an exit
      status value >0, and is not part of the compound list following a
      while, until, or if keyword, and is not a part of an AND or OR
      list, and is not a pipeline preceded by the ! reserved word, then
      the shell shall immediately exit.

bash, dash and ksh93 are correct (but not pdksh, posh and zsh).

There's currently a discussion about "set -e" in the austin group
mailing-list, but there does not seem to be any ambiguity on the
above point, as only "! true" returns an exit status value >0 but
this is not a simple command. And concerning historical behavior,
both ksh93 and bash output OK. So, I think that pdksh, posh and
zsh should follow.

Also the bug seems to be already accepted for pdksh:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387755

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

Kernel: Linux 2.6.26.5-20080922 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages posh depends on:
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  libc6                         2.7-18     GNU C Library: Shared libraries

posh recommends no packages.

posh suggests no packages.

-- debconf information:
  posh/sh: false



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

Reply via email to