Subject: Re: /bin/sh crashing
To: None <>
From: Rhialto <>
List: current-users
Date: 05/24/2007 16:46:24
On Wed 23 May 2007 at 15:45:53 +0200, Jukka Salmi wrote:
> Hi,
> the attached shell script crashes /bin/sh on NetBSD with a segfault,
> at least with -current and 3.1_STABLE. However, if the script is
> slightly modified - e.g. if the useless `if test 1' condition on line
> 5 or the also useless `true;' on line 9 is removed - then running it
> doesn't crash the shell. And, BTW, it doesn't crash ksh or bash...

See for
another case of sh crashing. The bug is still open (and assigned to the
wrong person: the package maintainer does not maintain /bin/sh).

It seems to be related to the "test" (or "[") builtin command too, at
least there is one nearby.

___ Olaf 'Rhialto' Seibert      -- You author it, and I'll reader it.
\X/ rhialto/at/        -- Cetero censeo "authored" delendum esse.