Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 1999 10:44:01 -0600
From:      Nate Williams <nate@mt.sri.com>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Please review: rc file changes
Message-ID:  <199908271644.KAA24087@mt.sri.com>
In-Reply-To: <199908271052.MAA02639@dorifer.heim3.tu-clausthal.de>
References:  <199908271052.MAA02639@dorifer.heim3.tu-clausthal.de>

next in thread | previous in thread | raw e-mail | index | archive | help
>  > [...]
>  > 2. value ) instead of value) for case statements
>  > [...]
>  >  	case $? in
>  > -	0)
>  > +		0 )
>  >  		;;
>  > -	2)
>  > +		2 )
>  >  		exit 1
>  >  		;;
>  > -	4)
>  > +		4 )
>  >  		reboot
>  >  		echo "reboot failed... help!"
>  >  		exit 1
>  >  		;;
>  > [...]
> 
> Why?!?  I like the existing "case" style _much_ better,
> it's more readable and emphasizes the structure.

And it is more conformant to 'style(9)', which says that the case
statements line up with the switch statement.  (Although that's for C
code, in this case I believe the sh code can be compliant indirectly...)



Nate


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?199908271644.KAA24087>