bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash: while: command not found? ??


From: Linda Walsh
Subject: bash: while: command not found? ??
Date: Mon, 07 Nov 2011 12:40:43 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666





At the # prompt, if I type:

   # <filename cat

it takes filename and pipes it as input into cat.

then, why, when I type:

    # <filename while read ln; do echo $ln; done

do I get...

   bash: syntax error near unexpected token `do'

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?







reply via email to

[Prev in Thread] Current Thread [Next in Thread]