View Review Details


Book:   Linux Pocket Guide
Subject:   Linux Pocket Guide Review
Date:   2004-02-23 13:01:17
From:   Igor
Rating:  StarStarStarStarStar

I am a big fan of oreilly ( ordered 'running mac os x' today from amazon )


I looked over the online excerpts and found the following error,


page 175:


------------


For example, if this is the script myscript:


i=0


while [ $i -lt 3 ]


do


echo "again"


i=`expr $i + 1`


done


$ ./myscript


0


1


2


The until loop repeats until a condition becomes true:


until command While the exit status of command is nonzero


do


body


done


For example:


i=0


until [ $i -gt 3 ]


do


echo "again"


i=`expr $i + 1`


done


$ ./myscript


0


1


2


The for loop iterates over values from a list:


----------


this will actually print again 3 times.


Other than that, I found the writing style very enjoyable and accessable.


See larger cover