Alexander E. Patrakov wrote:
> In /etc/rc.d/init.d/functions, we have:
>
> # if CUR_LENGTH was set to zero, then end the line
> if [ "${CUR_LENGTH}" == "0" ]; then
> echo ""
> fi
>
> "==" is a bash-specific "pattern matching" operator. In this context, it
> should be replaced with a plain "=".
> Or should it be: if [ $CUR_LENGTH -eq 0 ]; then instead, to do a numeric comparison? (Either with or without the quotes. It shouldn't matter unless $CUR_LENGTH might be unset.) (OTOH, is that a bashism too? I'd hope not, but I don't know for sure.)
signature.asc
Description: OpenPGP digital signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
