Package: dash
Version: 0.5.4-2
Severity: important

When some builtins such as "set" or "shift" fails, dash doesn't execute
the remaining commands of the command line:

$ set -o pipefail; echo OK
set: 1: Illegal option -o pipefail
$ shift; echo OK
shift: 2: can't shift that many
$ cd does_not_exist; echo OK
cd: 3: can't cd to does_not_exist
OK
$

One can see that "set" and "shift" are affected, but not "cd".

This bug prevents from building some projects when /bin/sh is dash,
because one can have in a Makefile:

  set -o pipefail 2>/dev/null; \
  <some command with a pipe>

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

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

Versions of packages dash depends on:
ii  libc6                         2.6.1-6    GNU C Library: Shared libraries

dash recommends no packages.

-- debconf information:
  dash/sh: false



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

Reply via email to