Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
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 chet@case.edu http://cnswww.cns.cwru.edu/~chet/