On 11/7/11 3:40 PM, Linda Walsh wrote: > So I try putting do on a separate line: > > # <filename while read ln > bash: while: command not found. > > hmm...I thought 'while was a builtin? why can't bash find it?
Since redirections can't precede a compound command like while, the `while' token isn't in a position where it can be recognized as a reserved word. `while' isn't a builtin. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/