> 
> >>>>> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes: 
>  
> Lars> Actually, I was informed by John W. Eaton through private email 
> Lars> that the 'in "$@"' part is the default and can therefore be 
> Lars> dropped.  My opinion on this (which is influenced by my personal 
> Lars> sh-scripting conventions) is that "for elt; do" is a bit less 
> Lars> readable than the full thing. 
>  
> It is true, but I don't think you can portably leave the do on the 
> same line, you have to: 
>  
> for arg 
> do 
>  
> done 
>  
> but this may be an hallucination of my memory. 

I've been burned with this, too - noticed it because one of the existing
autoconf boilerplates expands into an empty list.  (offhand I don't recall
if it was a vendor system or one of the bash implementations that breaks,
but since it's in a harmless place in autoconf, the error doesn't cause the
script to stop, hence it's not normally noticed unless you happen to be
tracing).

-- 
Thomas E. Dickey
[EMAIL PROTECTED]
http://www.clark.net/pub/dickey

Reply via email to