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 1DE4C138010 for ; Wed, 31 Oct 2012 21:05:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 913F021C06F for ; Wed, 31 Oct 2012 21:05:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 134FC21C067 for ; Wed, 31 Oct 2012 19:02:22 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 57C2233D88A for ; Wed, 31 Oct 2012 19:02:22 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 617) id 1E25621600; Wed, 31 Oct 2012 19:02:21 +0000 (UTC) From: "Sven Vermeulen (swift)" To: gentoo-doc-cvs@lists.gentoo.org Subject: [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-working-rcscripts.xml X-VCS-Repository: gentoo X-VCS-Files: hb-working-rcscripts.xml X-VCS-Directories: xml/htdocs/doc/en/handbook X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20121031190221.1E25621600@flycatcher.gentoo.org> Date: Wed, 31 Oct 2012 19:02:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc-cvs@lists.gentoo.org Reply-to: docs-team@lists.gentoo.org X-Archives-Salt: a2c7c7e2-6e24-4d50-9eaf-11edc0b8f282 X-Archives-Hash: 75375b0451628e20db17ec102f05672d swift 12/10/31 19:02:21 Modified: hb-working-rcscripts.xml Log: Fix bug #431790 - Init scripts should be posix-sh, not bash Revision Changes Path 1.38 xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml?rev=1.38&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml?rev=1.38&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml?r1=1.37&r2=1.38 Index: hb-working-rcscripts.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- hb-working-rcscripts.xml 24 Jul 2012 12:12:52 -0000 1.37 +++ hb-working-rcscripts.xml 31 Oct 2012 19:02:20 -0000 1.38 @@ -4,7 +4,7 @@ - + @@ -14,8 +14,8 @@ these aspects and explains how to deal with these scripts. -6 -2012-07-24 +7 +2012-10-31
Runlevels @@ -703,12 +703,11 @@

-Gentoo's init script syntax is based on the Bourne Again Shell (bash) so you are -free to use bash-compatible constructs inside your init script. However, you may -want to write your init scripts to be POSIX-compliant. Future init script -systems may allow symlinking /bin/sh to other shells besides -bash. Init scripts that rely on bash-only features will then break these -configurations. +Gentoo's init script syntax is based on the POSIX Shell so you are +free to use sh-compatible constructs inside your init script. Keep other +constructs, like bash-specific ones, out of the init scripts to ensure that the +scripts remain functional regardless of the change Gentoo might do on its init +system.