Your message dated Sat, 19 Feb 2005 14:03:03 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#295892: Extra columns ":" in "exit 0" lines of initscripts has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 18 Feb 2005 20:42:47 +0000 >From [EMAIL PROTECTED] Fri Feb 18 12:42:47 2005 Return-path: <[EMAIL PROTECTED]> Received: from imo-d02.mx.aol.com [205.188.157.34] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1D2Exb-00006h-00; Fri, 18 Feb 2005 12:42:47 -0800 Received: from [EMAIL PROTECTED] by imo-d02.mx.aol.com (mail_out_v37_r3.8.) id l.1f.10780f58 (22681) for <[EMAIL PROTECTED]>; Fri, 18 Feb 2005 15:42:42 -0500 (EST) Received: from netscape.net (host242-65.pool80180.interbusiness.it [80.180.65.242]) by air-in04.mx.aol.com (v104.18) with ESMTP id MAILININ42-589942165341311; Fri, 18 Feb 2005 15:42:42 -0500 Message-ID: <[EMAIL PROTECTED]> Date: Fri, 18 Feb 2005 21:53:31 +0100 From: Alessandro Garberi <[EMAIL PROTECTED]> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: [EMAIL PROTECTED] Subject: Extra columns ":" in "exit 0" lines of initscripts Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AOL-IP: 80.180.65.242 X-Mailer: Unknown (No Version) X-AOL-Test: Testing Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-5.1 required=4.0 tests=BAYES_44,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02 X-Spam-Level: Package: sysvinit Version: 2.84-2woody1 I'm not sure this is a bug, but I think so! Almost every initscript (/etc/init.d/*) ends with "exit 0", but ten of theese files have a column (:) before the line. I think this prevents the line to be executed. Here follows the command I used to list the files and the list of files. Note that two of them (bootmisc.sh and checkroot.sh) have 2 more lines starting with column, please check them too! --- Command --- gateway:/etc/init.d# grep ^\[[:space:]]*: * bootmisc.sh:: > /var/run/utmp bootmisc.sh:: exit 0 checkfs.sh:: exit 0 checkroot.sh: : > /etc/mtab checkroot.sh:: exit 0 halt:: exit 0 mountall.sh:: exit 0 mountnfs.sh:: exit 0 rmnologin:: exit 0 sendsigs:: exit 0 umountfs:: exit 0 umountnfs.sh:: exit 0 --- List of files --- bootmisc.sh checkfs.sh checkroot.sh halt mountall.sh mountnfs.sh rmnologin sendsigs umountfs umountnfs.sh My system is: Debian 3.0 (Woody) - i386 Thanks for your attention! Alessandro --------------------------------------- Received: (at 295892-done) by bugs.debian.org; 19 Feb 2005 14:03:08 +0000 >From [EMAIL PROTECTED] Sat Feb 19 06:03:08 2005 Return-path: <[EMAIL PROTECTED]> Received: from 10fwd.cistron-office.nl (smtp.cistron-office.nl) [62.216.29.197] (mail) by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1D2VCN-0000LI-00; Sat, 19 Feb 2005 06:03:08 -0800 Received: from a80-126-193-215.adsl.xs4all.nl ([80.126.193.215] helo=stargazer.cistron.net) by smtp.cistron-office.nl with asmtp (Exim 3.35 #1 (Debian)) id 1D2VCL-0002GO-00; Sat, 19 Feb 2005 15:03:05 +0100 Date: Sat, 19 Feb 2005 14:03:03 +0000 From: Miquel van Smoorenburg <[EMAIL PROTECTED]> Subject: Re: Bug#295892: Extra columns ":" in "exit 0" lines of initscripts To: Thomas Hood <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> (from [EMAIL PROTECTED] on Fri Feb 18 22:15:25 2005) X-Mailer: Balsa 2.2.3 Message-Id: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02 X-Spam-Level: X-CrossAssassin-Score: 2 On Fri, 18 Feb 2005 22:15:25, Thomas Hood wrote: > On Fri, 2005-02-18 at 21:53 +0100, Alessandro Garberi wrote: > > I'm not sure this is a bug, but I think so! > > Almost every initscript (/etc/init.d/*) ends with "exit 0", but ten of=20 > > these files have a column (:) before the line. >=20 >=20 > Yes. Weird. I wonder what the purpose is. It's just a matter of taste. Since a shell script exits with the status of the last command executed, and the exit value of ":" is always 0, "exit 0" and ": exit 0" at the end of a shell script are functionally equivalent. I tend to use ": exit 0" at the end of a .sh script because the .sh scripts are sourced, and exit 0 might also exit the calling shell script. ": exit 0" just makes that more explicit. Since /etc/init.d/rc call the .sh shell scripts in a seperate environment using ( .. ) this cannot happen, so I could just use "exit 0" (or no exit at all), but still, it doesn't really matter. Mike. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]