Debian Bug report logs - #547902
dash: 'read' builtin reads only the first character from pipes or /proc files

version graph

Package: dash; Maintainer for dash is Andrej Shadura <[email protected]>; Source for dash is src:dash (PTS, buildd, popcon).

Reported by: Corin <[email protected]>

Date: Tue, 22 Sep 2009 13:54:09 UTC

Severity: important

Tags: patch, upstream

Merged with 547906, 595063

Found in versions dash/0.5.4-12, dash/0.5.12-2, dash/0.5.7-4, dash/0.5.6.1-1~exp2

Forwarded to https://www.spinics.net/lists/dash/msg00346.html

Full log


🔗 View this message in rfc822 format

MIME-Version: 1.0
X-Mailer: MIME-tools 5.428 (Entity 5.428)
X-Loop: [email protected]
From: [email protected] (Debian Bug Tracking System)
To: Corin <[email protected]>
Subject: Bug#547902 closed by Moritz Muehlenhoff <[email protected]> (Re:
 Bug#547902: dash only reads the first character from pipe (bash reads
 whole line))
Message-ID: <[email protected]>
References: <[email protected]>
 <[email protected]>
X-Debian-PR-Message: they-closed 547902
X-Debian-PR-Package: linux-2.6
X-Debian-PR-Keywords: moreinfo patch wontfix
Reply-To: [email protected]
Date: Fri, 06 May 2011 19:18:09 +0000
Content-Type: multipart/mixed; boundary="----------=_1304709489-3280-1"
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your Bug report
which was filed against the linux-2.6 package:

#547902: dash only reads the first character from pipe (bash reads whole line)

It has been closed by Moritz Muehlenhoff <[email protected]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Moritz Muehlenhoff <[email protected]> by
replying to this email.


-- 
547902: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547902
Debian Bug Tracking System
Contact [email protected] with problems
[Message part 2 (message/rfc822, inline)]
From: Moritz Muehlenhoff <[email protected]>
To: Christian Hohnstaedt <[email protected]>
Subject: Re: Bug#547902: dash only reads the first character from pipe (bash reads whole line)
Date: Fri, 6 May 2011 21:15:45 +0200
On Tue, Nov 24, 2009 at 10:16:06PM +0100, Moritz Muehlenhoff wrote:
> On Thu, Nov 19, 2009 at 09:27:47AM +0100, Christian Hohnstaedt wrote:
> > On Wed, Nov 18, 2009 at 10:13:48PM +0100, Moritz Muehlenhoff wrote:
> > > On Tue, Oct 13, 2009 at 11:13:01AM +0000, Gerrit Pape wrote:
> > > > tags 547902 + patch
> > > > quit
> > > 
> > > [ Adding Christian to CC: ]
> > > 
> > > Christian, did you submit your patch upstream?
> > 
> > No, not yet.
> 
> Please keep this bug CCed if you submit it.

Closing due to lack of activity.

Cheers,
        Moritz

[Message part 3 (message/rfc822, inline)]
From: Corin <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: dash only reads the first character from pipe (bash reads whole line)
Date: Tue, 22 Sep 2009 15:49:40 +0200
Package: dash
Version: 0.5.5.1-2.3
Severity: important


The 'read' command seems to only read the first character and not the whole line.

Example / comparison with bash:

# /bin/dash
# read MAX </proc/sys/net/netfilter/nf_conntrack_max
# echo $MAX
2

# /bin/bash
# read MAX </proc/sys/net/netfilter/nf_conntrack_max
# echo $MAX
262144


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-vserver-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dash depends on:
ii  debianutils                  3.2.1       Miscellaneous utilities specific t
ii  dpkg                         1.15.3.1+b1 Debian package management system
ii  libc6                        2.9-25      GNU C Library: Shared libraries

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 14:41:29 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.