[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Switching /bin/sh to dash (part two)



Clint Adams <schizo@debian.org> writes:

> -	   idl=$(ls /etc/init.d/${service} 2> /dev/null | head -n 1)
> +	   idl="/etc/init.d/${service}"
>  	   if [ -n "$idl" ] && [ -x $idl ]; then

You might as well remove the -n test if you do this.  There's not much
chance of hitting it anymore...


Bjørn


Reply to: