Your message dated Sun, 10 Apr 2011 22:08:19 -0500
with message-id <20110411030715.GA1128@elie>
and subject line Re: dash doesn't assign second variable in a single statement
has caused the Debian Bug report #334182,
regarding dash doesn't assign second variable in a single statement
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
334182: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=334182
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
Version: 0.5.6.1-1~exp1

Nathan Hand wrote:

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

Good catch; thanks.  Fixed by commit 95a60b29 ([VAR] Replace
cmdenviron with localvars, 2010-05-26).


--- End Message ---

Reply via email to