Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 1999 19:14:36 +0800
From:      Peter Wemm <peter@netplex.com.au>
To:        Doug <Doug@gorean.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Please review: rc file changes 
Message-ID:  <19990827111436.6E1441C1F@overcee.netplex.com.au>
In-Reply-To: Your message of "Thu, 26 Aug 1999 23:30:44 MST." <37C63094.8350A91B@gorean.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Doug wrote:

If looking at the before and after seperately, the indentation of the case
statements is IMHO bizzare and unlike anything I've seen before...

eg: Changing this:

> if [ "$1" = "autoboot" ]; then
>  	echo Automatic reboot in progress...
>  	fsck -p
>  	case $? in
> 	0)
>  		;;
> 	2)
>  		exit 1
>  		;;
> 	4)
>  		reboot
>  		echo "reboot failed... help!"
>  		exit 1
>  		;;
> 	8)
>  		echo "Automatic file system check failed... help!"
>  		exit 1
>  		;;
> 	12)
>  		echo "Reboot interrupted"
>  		exit 1
>  		;;
> 	130)
>  		# interrupt before catcher installed
>  		exit 1
>  		;;
> 	*)
>  		echo "Unknown error in reboot"
>  		exit 1
>  		;;
>  	esac
> else
>  	echo Skipping disk checks ...
> fi

To this:

> case $1 in
> 	autoboot )
>  	echo Automatic reboot in progress...
>  	fsck -p
>  	case $? in
> 		0 )
>  		;;
> 		2 )
>  		exit 1
>  		;;
> 		4 )
>  		reboot
>  		echo "reboot failed... help!"
>  		exit 1
>  		;;
> 		8 )
>  		echo "Automatic file system check failed... help!"
>  		exit 1
>  		;;
> 		12 )
>  		echo "Reboot interrupted"
>  		exit 1
>  		;;
> 		130 )
>  		# interrupt before catcher installed
>  		exit 1
>  		;;
> 		* )
>  		echo "Unknown error in reboot"
>  		exit 1
>  		;;
>  	esac
> 		;;
> 	* )
>  	echo Skipping disk checks ...
> 		;;
> esac

In particular, the "value<space>)" and the hiding of the values in with the
body.  I presume the negative indent at the end is a typo... 

Cheers,
-Peter



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990827111436.6E1441C1F>