On 08/02/2011 06:03 PM, Cristian Ionescu-Idbohrn wrote:
> Now, what is the point with forking a subshell '( true )' just to
> execute the (built in most shells) command 'true', when the command
> ':' is guaranteed built in all POSIX complient shells?
>
> -while ( true ) ; do
> +while :; do
>
> This command:
>
>       /usr/sbin/laptop_mode auto
>
> can fail (indefinitely) both in a number of known places:
>
> usr/sbin/laptop_mode:250:         exit 1
> usr/sbin/laptop_mode:533:         exit 1
> usr/sbin/laptop_mode:538:         exit 1
> usr/sbin/laptop_mode:561:                   exit 1 ;;
>
> and also not yet known places, I presume.  The exit status after
> execution is not validated.
Thank you.

-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to