Package: dash
Version: 0.5.4-8ubuntu1
Severity: minor

The following shell script reproduce the problem:

#
# Rocco Was Here on Mon Jul  7 11:32:34 CEST 2008
#
#!/bin/dash

var="This is bad '\0'"
echo "$var"

var="This is bad again '\0'nothing appears after the misterious terminator"
echo "$var"

############

this is the output produced on a system running Ubuntu 8.04.1
with dash 0.5.4-8ubuntu1

chumby:~> /bin/dash dash-bug.sh
This is bad '
This is bad again '

while the expected result should be:

This is bad '\0'
This is bad again '\0'nothing appears after the misterious terminator

as when the script is executed by the bash or other shells

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

Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash



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

Reply via email to