Package: dash
Version: 0.5.2-8
Severity: normal

Dash doesn't correctly handle code where a second variable is assigned
in a single statement. For example, this works with bash.

  $ /bin/bash -c 'K=dvb0.net0 A=${K#dvb} ; echo $A'
  0.net0

Here is the same line with dash.

  $ /bin/dash -c 'K=dvb0.net0 A=${K#dvb} ; echo $A'
  <empty line>

Inserting semicolons fixes the second assignment.

  $ /bin/dash -c 'K=dvb0.net0 ; A=${K#dvb} ; echo $A'
  0.net0

My best guess is that this is a bug in dash.


-- System Information:
Debian Release: testing/unstable
  APT prefers breezy
  APT policy: (500, 'breezy'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

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

dash recommends no packages.

-- debconf information:
* dash/sh: true


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

Reply via email to