bug-bash
[Top][All Lists]
Advanced

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

Re: syntax error when setting variable in front of "while"


From: Ralf Goertz
Subject: Re: syntax error when setting variable in front of "while"
Date: Sat, 07 Aug 2010 07:48:55 +0200
User-agent: KNode/4.3.5

Dennis Williamson wrote:

> while is a compound command. Only simple commands can have preceding
> variable assignments. From man bash:

Thanks. I just found out that I can get away with

> while IFS=$'\t' read a b; do echo "$a" "$b"; done




reply via email to

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