Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Another /bin/sh bug (with patch)

From: Will Rose <c...@cts.com>
Subject: Re: Another /bin/sh bug (with patch)
Date: 1999/05/24
Message-ID: <7ia67l$rdh$1@nusku.cts.com>#1/1
X-Deja-AN: 481331638
Distribution: world
References: <7i96jt$5qf$1@fangorn.moria.de>
X-Complaints-To: usenet@nusku.cts.com
X-Trace: nusku.cts.com 927505461 28081 205.163.0.7 (24 May 1999 00:24:21 GMT)
Organization: CTS Network Services
User-Agent: tin/pre-1.4-19990413 ("Endemoniada") (UNIX) (crash/3.2 (i386))
NNTP-Posting-Date: 24 May 1999 00:24:21 GMT
Newsgroups: comp.os.minix

Michael Haardt <mich...@moria.de> wrote:
: I found the following bug in /bin/sh:

: case `echo ' '` in
: esac

: out of string space

: This is caused by an endless loop that is fixed with the patch
: below.  I start to wonder if anybody runs serious scripts with
: the Minix shell, because this is already the second bug I found
: in the shell trying to run a large script!

I gave up on the standard Minix shell a while back; the problem was
that its behaviour was pretty much undocumented (I couldn't tell bugs
from features), and the code too difficult to read.  I wrote a man page
for sh after a lot of experiments, but never tried to fix any of the
problems I found.  The newer ash shell seems a better bet if you want
reliability, though I haven't hammered it especially hard.


Will
c...@crash.cts.com