GNU bug report logs - #35681
grep's ./configure doesn't work with plain /bin/sh

Previous Next

Package: grep;

Reported by: Miro Kropáček <miro.kropacek <at> gmail.com>

Date: Fri, 10 May 2019 23:27:01 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Martijn Dekker <martijn <at> inlv.org>
To: Miro Kropáček <miro.kropacek <at> gmail.com>, bug-bash <at> gnu.org, 35681 <at> debbugs.gnu.org
Subject: bug#35681: Regression in --enable-minimal-config
Date: Sun, 12 May 2019 12:47:46 +0200
Op 11-05-19 om 13:08 schreef Miro Kropáček:
> It seems --enable-minimal-config isn't tested very often as both
> 4.3.48 and 4.2.x required a few #ifdef's to be added to make it
> compile (Linux).

I think you're probably hitting this bug:

https://lists.gnu.org/archive/html/bug-bash/2016-09/msg00083.html

The exit status of subshells is broken in bash-4.3 and bash-4.4 with 
--enable-minimal-config. This is a fatal bug that would easily break 
most substantial shell scripts, including configure.

The bug was fixed in bash-5.0.

As for a minimal bash-5.0 with full POSIX compliance, aliases are 
required by POSIX but turned off by the minimal config, so you want: 
--enable-minimal-config --enable-alias --enable-strict-posix-default

I now often test modernish (my shell language enhancement library) 
against that shell configuration (among many others), so 
--enable-minimal-config is now a little better tested than before.

-- 
modernish -- harness the shell
https://github.com/modernish/modernish




This bug report was last modified 5 years and 138 days ago.

Previous Next


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