Package: dash
Version: 0.5.3-3
Severity: normal

hi

here are the examples

$ bash -c 'echo -n -e "A\0102C\00D\0E" | hexdump -c'
0000000   A   B   C  \0   D  \0   E
0000007

$ /bin/echo -n -e "A\0102C\00D\0E" | hexdump -c
0000000   A   B   C  \0   D  \0   E
0000007

$ zsh -c 'echo -n -e "A\0102C\00D\0E" | hexdump -c'
0000000   A   B   C  \0   D  \0   E
0000007

$ dash -c 'echo -n  "A\0102C\00D\0E" | hexdump -c'
0000000   A   B   C
0000003

and also

$ dash -c 'echo -n  "ABC\0DEFGH" | hexdump -c'
0000000   A   B   C
0000003

As you see, dash 's builtin echo truncates the output at the first \0

a.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)

Versions of packages dash depends on:
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries

dash recommends no packages.

-- debconf information:
* dash/sh: false

-- 
Andrea Mennucc
 "E' un mondo difficile. Che vita intensa!" (Tonino Carotone)

Attachment: signature.asc
Description: Digital signature

Reply via email to