Package: dash
Version: 0.5.2-7
Severity: normal

f() {
  while return 2; do :; done
}

f
echo "$?"

The above script outputs "0" while it should output "2".

Same goes for:

dash -c 'while return 2; do :; done'

Same with "until" instead of "while"


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=C, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)

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

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