bug-bash
[Top][All Lists]
Advanced

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

Re: 'for f in' with empty list occers error


From: Chet Ramey
Subject: Re: 'for f in' with empty list occers error
Date: Tue, 28 May 2002 10:51:05 -0400

> Machine Type: i386-vine-linux-gnu
> 
> Bash Version: 2.04
> Patch Level: 1
> Release Status: release
> 
> Description:
> 
> > $ for f in ; do echo '$f='$f; done
> > bash: syntax error near unexpected token `;'
> 
>   According to man, this should do nothing, I think.

No, according to the manual this is a syntax error.

Read the Bash FAQ, question E7.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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