From: Ulrich Mueller <ulm@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: pms-bugs@gentoo.org
Subject: [gentoo-dev] [PATCH] Recommend setting the bash compatibility level. (was: Re: utilizing BASH_COMPAT to smooth upgrades)
Date: Wed, 21 Oct 2015 09:34:44 +0200 [thread overview]
Message-ID: <22055.16404.322480.719660@a1i15.kph.uni-mainz.de> (raw)
In-Reply-To: <20151020225104.GK3918@vapier.lan>
[-- Attachment #1: Type: text/plain, Size: 2655 bytes --]
>>>>> On Tue, 20 Oct 2015, Mike Frysinger wrote:
> On 21 Oct 2015 00:03, Ulrich Mueller wrote:
>> Therefore I'd make it a recommendation at most. Something along the
>> lines of: "The interpreter is assumed to be GNU bash, version as
>> listed in table xyz, or any later version. If possible, the package
>> manager should set the shell's compatibility level to the exact
>> version specified."
> and include the recommended snippet as well as add a warning about
> not exporting the variable less it break external shell scripts.
"The interpreter is assumed to be GNU bash, version as listed in table
xyz, or any later version. If possible, the package manager should set
the shell's compatibility level to the exact version specified. It
must ensure that any such compatibility settings (e.g. the BASH_COMPAT
variable) are not exported to external programs."
Ulrich
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@gentoo.org>
Date: Wed, 21 Oct 2015 09:31:06 +0200
Subject: [PATCH] Recommend setting the bash compatibility level.
---
ebuild-format.tex | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/ebuild-format.tex b/ebuild-format.tex
index c741398..6eab1d5 100644
--- a/ebuild-format.tex
+++ b/ebuild-format.tex
@@ -3,11 +3,14 @@
The ebuild file format is in its basic form a subset of the format of a bash script. The interpreter
is assumed to be GNU bash, version as listed in table~\ref{tab:system-commands-table} on
-page~\pageref{tab:system-commands-table}, or any later version. The file encoding must be UTF-8
-with Unix-style newlines. When sourced, the ebuild must define certain variables and functions
-(see sections~\ref{sec:ebuild-vars} and~\ref{sec:ebuild-functions} for specific information), and
-must not call any external programs, write anything to standard output or standard error, or modify
-the state of the system in any way.
+page~\pageref{tab:system-commands-table}, or any later version. If possible, the package manager
+should set the shell's compatibility level to the exact version specified. It must ensure that any
+such compatibility settings (e.g. the \t{BASH\_COMPAT} variable) are not exported to external programs.
+
+The file encoding must be UTF-8 with Unix-style newlines. When sourced, the ebuild must define
+certain variables and functions (see sections~\ref{sec:ebuild-vars} and~\ref{sec:ebuild-functions}
+for specific information), and must not call any external programs, write anything to standard
+output or standard error, or modify the state of the system in any way.
% vim: set filetype=tex fileencoding=utf8 et tw=100 spell spelllang=en :
--
2.6.2
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
next prev parent reply other threads:[~2015-10-21 7:35 UTC|newest]
Thread overview: 90+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <22049.17676.1822.986579@a1i15.kph.uni-mainz.de>
2015-10-17 12:19 ` [gentoo-dev] Re: [gentoo-dev-announce] EAPI 6 draft for review Jason A. Donenfeld
2015-10-17 12:21 ` Jason A. Donenfeld
2015-10-17 12:24 ` Michał Górny
2015-10-17 12:28 ` hasufell
2015-10-17 12:52 ` Ulrich Mueller
2015-10-17 12:56 ` hasufell
2015-10-17 13:07 ` Ulrich Mueller
2015-10-17 15:22 ` hasufell
2015-10-17 16:40 ` Alexis Ballier
2015-10-17 22:16 ` Rich Freeman
2015-10-18 8:33 ` Alexis Ballier
2015-10-18 9:54 ` Ulrich Mueller
2015-10-18 9:56 ` Alexis Ballier
2015-10-18 10:13 ` Michał Górny
2015-10-18 10:17 ` Ulrich Mueller
2015-10-18 10:49 ` Rich Freeman
2015-10-19 7:12 ` Alexis Ballier
2015-10-19 7:22 ` Anthony G. Basile
2015-10-19 7:28 ` Alexis Ballier
2015-10-19 8:25 ` Ulrich Mueller
2015-10-19 8:31 ` Alexis Ballier
2015-10-19 7:58 ` Michał Górny
2015-10-19 8:04 ` Alexis Ballier
2015-10-19 8:09 ` Michał Górny
2015-10-19 8:17 ` Alexis Ballier
2015-10-19 8:07 ` Anthony G. Basile
2015-10-19 22:07 ` Andreas K. Huettel
2015-10-19 12:38 ` Rich Freeman
2015-10-19 13:34 ` Alexis Ballier
2015-10-19 13:51 ` Rich Freeman
2015-10-19 14:21 ` Alexis Ballier
2015-10-19 17:17 ` Rich Freeman
2015-10-19 18:28 ` Alexis Ballier
2015-10-19 19:49 ` Rich Freeman
2015-10-20 7:51 ` Alexis Ballier
2015-10-20 8:57 ` Rich Freeman
2015-10-20 9:22 ` Alexis Ballier
2015-10-20 10:00 ` Rich Freeman
2015-10-20 10:25 ` Alexis Ballier
2015-10-21 1:24 ` Duncan
2015-10-21 7:29 ` Alexis Ballier
2015-10-18 10:36 ` Alexis Ballier
2015-10-20 7:47 ` Daniel Campbell
2015-10-20 8:00 ` Alexis Ballier
2015-10-17 12:42 ` Ulrich Mueller
2015-10-17 12:25 ` hasufell
2015-10-17 12:38 ` Rich Freeman
2015-10-17 12:49 ` hasufell
2015-10-17 12:56 ` Rich Freeman
2015-10-17 13:02 ` hasufell
2015-10-17 13:47 ` Alexis Ballier
2015-10-17 15:00 ` hasufell
2015-10-17 16:07 ` Anthony G. Basile
2015-10-17 16:35 ` Alexis Ballier
2015-10-17 18:03 ` Ciaran McCreesh
2015-10-18 11:37 ` hasufell
2015-10-18 11:43 ` Rich Freeman
2015-10-18 12:05 ` hasufell
2015-10-18 12:24 ` Rich Freeman
2015-10-17 12:51 ` Michał Górny
2015-10-17 19:15 ` Rich Freeman
2015-10-17 20:08 ` Alexis Ballier
2015-10-17 20:47 ` Ulrich Mueller
2015-10-18 8:31 ` Alexis Ballier
2015-10-18 8:48 ` Michał Górny
2015-10-18 9:23 ` Alexis Ballier
2015-10-18 10:07 ` Michał Górny
2015-10-18 10:34 ` Alexis Ballier
2015-10-18 11:54 ` Andreas K. Huettel
2015-10-18 11:57 ` Alexis Ballier
2015-10-18 12:44 ` Ciaran McCreesh
2015-10-18 13:01 ` Rich Freeman
2015-10-18 18:00 ` Alexis Ballier
2015-10-18 18:06 ` Ciaran McCreesh
2015-10-18 18:19 ` Alexis Ballier
2015-10-18 18:36 ` Ciaran McCreesh
2015-10-18 19:20 ` Alexis Ballier
2015-10-17 21:24 ` Michał Górny
2015-10-18 8:47 ` Alexis Ballier
2015-10-18 9:01 ` Michał Górny
2015-10-18 9:34 ` Alexis Ballier
2015-10-18 10:09 ` Michał Górny
2015-10-18 10:31 ` Alexis Ballier
2015-10-20 18:55 ` [gentoo-dev] utilizing BASH_COMPAT to smooth upgrades Mike Frysinger
2015-10-20 22:03 ` Ulrich Mueller
2015-10-20 22:51 ` Mike Frysinger
2015-10-21 7:34 ` Ulrich Mueller [this message]
2015-10-22 13:55 ` [gentoo-dev] Re: [PATCH] Recommend setting the bash compatibility level. (was: Re: utilizing BASH_COMPAT to smooth upgrades) Mike Frysinger
2015-10-22 15:00 ` Ulrich Mueller
2015-10-22 15:21 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22055.16404.322480.719660@a1i15.kph.uni-mainz.de \
--to=ulm@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=pms-bugs@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox