Public bug reported:

Binary package hint: dash

It seems dash does not handle escape characters correctly. Below is how
I can trigger (what I think is) an error on Ubuntu 8.04.1.


# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"
# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2008-03-19 13:13 /bin/sh -> dash
# dpkg -l dash
ii  dash           0.5.4-8ubuntu1 POSIX-compliant shell

# cat /tmp/runme
echo "printf(\"Hello\\n\");"

# /bin/bash /tmp/runme
printf("Hello\n");

## THE PROBLEM IS HERE
# /bin/sh /tmp/runme
printf("Hello
");

I also tested this on our server running NetBSD/amd64 and I have no
problems with /bin/sh there.

# uname -srm
NetBSD 4.0_STABLE amd64
# ls -l /bin/sh
-r-xr-xr-x  1 root  wheel  167620 Aug 13 08:40 /bin/sh

# /usr/pkg/bin/bash /tmp/runme
printf("Hello\n");

# /bin/sh /tmp/runme
printf("Hello\n");

** Affects: dash (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Wrong escape character processing in dash
https://bugs.launchpad.net/bugs/268929
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to