Package: zsh
Version: 4.3.9-3
Severity: normal

POSIX shells (bash, dash, ksh93, pdksh, posh) return with no output
and an exit status equal to 1 on:

  sh -c 'set -e; foo() { false && false; }; foo; echo $?'

but zsh doesn't, even with "emulate sh":

$ zsh -fc 'emulate sh; set -e; foo() { false && false; }; foo; echo $?'
1

zsh should match the existing practice (perhaps even without
"emulate sh", unless this can break too many zsh scripts).

-- System Information:
Debian Release: squeeze/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (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 zsh depends on:
ii  libc6                     2.9-6          GNU C Library: Shared libraries
ii  libcap2                   2.16-2         support for getting/setting POSIX.
ii  libncursesw5              5.7+20090228-1 shared libraries for terminal hand

Versions of packages zsh recommends:
ii  libc6                         2.9-6      GNU C Library: Shared libraries
ii  libpcre3                      7.8-2      Perl 5 Compatible Regular Expressi

Versions of packages zsh suggests:
ii  zsh-doc                       4.3.9-3    zsh documentation - info/HTML form

-- 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

Reply via email to