Debian Bug report logs - #379227
dash: echo truncates at \0

version graph

Package: dash; Maintainer for dash is Gerrit Pape <pape@smarden.org>; Source for dash is src:dash.

Reported by: A Mennucc <mennucc1@debian.org>

Date: Sat, 22 Jul 2006 11:03:09 UTC

Severity: normal

Tags: upstream

Merged with 489705

Found in versions 0.5.4-8ubuntu1, dash/0.5.7-1, dash/0.5.3-3

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org>:
Bug#379227; Package dash. Full text and rfc822 format available.

Acknowledgement sent to A Mennucc <mennucc1@debian.org>:
New Bug report received and forwarded. Copy sent to Gerrit Pape <pape@smarden.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: A Mennucc <mennucc1@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dash: echo truncates at \0
Date: Sat, 22 Jul 2006 12:48:38 +0200
[Message part 1 (text/plain, inline)]
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)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org>:
Bug#379227; Package dash. Full text and rfc822 format available.

Acknowledgement sent to A Mennucc <mennucc1@debian.org>, 379227@bugs.debian.org, Herbert Xu <herbert@gondor.apana.org.au>:
Extra info received and forwarded to list. Copy sent to Gerrit Pape <pape@smarden.org>. Full text and rfc822 format available.

Message #10 received at 379227@bugs.debian.org (full text, mbox):

From: Gerrit Pape <pape@smarden.org>
To: A Mennucc <mennucc1@debian.org>, 379227@bugs.debian.org, Herbert Xu <herbert@gondor.apana.org.au>
Subject: Re: Bug#379227: dash: echo truncates at \0
Date: Tue, 25 Jul 2006 09:39:56 +0000
forwarded 379227 upstream
quit

On Sat, Jul 22, 2006 at 12:48:38PM +0200, A Mennucc wrote:
> 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

Hi Herbert, I can confirm this bug, but don't have a patch yet.  It
doesn't only affect echo, it seems.

Thanks, Gerrit.



Noted your statement that Bug has been forwarded to upstream. Request was from Gerrit Pape <pape@smarden.org> to control@bugs.debian.org. Full text and rfc822 format available.

Forcibly Merged 379227 489705. Request was from Josh Triplett <josh@joshtriplett.org> to control@bugs.debian.org. (Fri, 21 Aug 2009 04:12:03 GMT) Full text and rfc822 format available.

Added tag(s) upstream. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 27 Sep 2011 01:18:17 GMT) Full text and rfc822 format available.

Bug Marked as found in versions dash/0.5.7-1. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 27 Sep 2011 01:18:18 GMT) Full text and rfc822 format available.

Unset Bug forwarded-to-address Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 27 Sep 2011 01:18:18 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 16 16:16:09 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.