true-provides successful exit status

 <  Day Day Up  >  

true ”provides successful exit status

true does nothing, successfully, meaning that it always returns a 0 exit status, indicating success. Used in Bourne and Korn shell programs as a command to start an infinite loop.

 while true do    command done 

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net