RFC - bootscript error reporting

Bryan Kadzban bryan at kadzban.is-a-geek.net
Thu Jan 29 04:05:47 PST 2004


Jeremy Utley wrote:
> I can see now we could actually integrate an option like this into
> your previous request, like so:
> 
> if [$PAUSE_DURATION == 0]
> then
>     read $i
> else
>     sleep $PAUSE_DURATION
> fi
> 
> 
> Comments?
> 

Well, other than making sure to include a space before $PAUSE_DURATION
and after 0, and maybe using -eq rather than a string comparison, no.  ;-)

(IOW, I think it should be "if [ $PAUSE_DURATION -eq 0 ]" instead.  But
that's minor, and I doubt that you intended what you wrote to be used
verbatim anyway.  I guess the issue with using == is if somebody sets
PAUSE_DURATION to 00 or something.)



More information about the lfs-dev mailing list