From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7ABD613888F for ; Fri, 23 Oct 2015 17:31:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 65E7FE0867; Fri, 23 Oct 2015 17:30:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DAB20E085C for ; Fri, 23 Oct 2015 17:30:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ECE61340AB5 for ; Fri, 23 Oct 2015 17:30:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B0797169B for ; Fri, 23 Oct 2015 17:30:48 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1445621137.e6cfa80244f6c5976712f39667abff4b99afdb19.ulm@gentoo> Subject: [gentoo-commits] proj/pms:eapi-6 commit in: / X-VCS-Repository: proj/pms X-VCS-Files: ebuild-format.tex X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: e6cfa80244f6c5976712f39667abff4b99afdb19 X-VCS-Branch: eapi-6 Date: Fri, 23 Oct 2015 17:30:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ae8898ba-e502-4ef6-8196-99a9378273d3 X-Archives-Hash: 1cb5ab20ef3447c109d9310edbd323b0 commit: e6cfa80244f6c5976712f39667abff4b99afdb19 Author: Ulrich Müller gentoo org> AuthorDate: Wed Oct 21 16:47:05 2015 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Fri Oct 23 17:25:37 2015 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=e6cfa802 Recommend setting the bash compatibility level. ebuild-format.tex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ebuild-format.tex b/ebuild-format.tex index 346a9da..1c64d81 100644 --- a/ebuild-format.tex +++ b/ebuild-format.tex @@ -3,7 +3,10 @@ \featurelabel{bash-version} 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:bash-version}, or any later version. +table~\ref{tab:bash-version}, 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