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 > these files have a column (:) before the line.
Yes. Weird. I wonder what the purpose is. > I think this prevents the line to be executed. Yes. $ cat /tmp/s #!/bin/sh echo a : exit 0 echo b $ /tmp/s a b $ . /tmp/s a b > 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 Note that : > /etc/mtab is correct. -- Thomas Hood <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]