Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: Ulrich Mueller <ulm@g.o>
Cc: gentoo-dev@l.g.o, pms-bugs@g.o
Subject: [gentoo-dev] Re: [PATCH] Recommend setting the bash compatibility level. (was: Re: utilizing BASH_COMPAT to smooth upgrades)
Date: Thu, 22 Oct 2015 13:55:15
Message-Id: 20151022135503.GJ26317@vapier.lan
In Reply to: [gentoo-dev] [PATCH] Recommend setting the bash compatibility level. (was: Re: utilizing BASH_COMPAT to smooth upgrades) by Ulrich Mueller
1 On 21 Oct 2015 09:34, Ulrich Mueller wrote:
2 > >>>>> On Tue, 20 Oct 2015, Mike Frysinger wrote:
3 > > On 21 Oct 2015 00:03, Ulrich Mueller wrote:
4 > >> Therefore I'd make it a recommendation at most. Something along the
5 > >> lines of: "The interpreter is assumed to be GNU bash, version as
6 > >> listed in table xyz, or any later version. If possible, the package
7 > >> manager should set the shell's compatibility level to the exact
8 > >> version specified."
9 >
10 > > and include the recommended snippet as well as add a warning about
11 > > not exporting the variable less it break external shell scripts.
12 >
13 > "The interpreter is assumed to be GNU bash, version as listed in table
14 > xyz, or any later version. If possible, the package manager should set
15 > the shell's compatibility level to the exact version specified. It
16 > must ensure that any such compatibility settings (e.g. the BASH_COMPAT
17 > variable) are not exported to external programs."
18
19 why not include the shell script snippet too ?
20 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies