FreeBSD Port: bash-3.1.10

Parv parv at pair.com
Sat Feb 25 09:50:21 PST 2006


in message <E1FCyQd-00008G-SU at ygrex>,
wrote y at unlit.org thusly...
>
> Hello,
> 
> I have this bash:
> 
> $ bash --version
> GNU bash, version 3.1.10(0)-release (i386-portbld-freebsd4.11)
> Copyright (C) 2005 Free Software Foundation, Inc.

Here ...

  GNU bash, version 3.00.16(1)-release (i386-portbld-freebsd6.0)
  Copyright (C) 2004 Free Software Foundation, Inc.


> This is from manpage:
> 
> for name [ in word ] ; do list ; done
>   ... If the in word  is  omitted,  the for  command  executes list
>   once for each positional parameter that is set (see PARAMETERS
>   below).
> 
> The case, when [ in word ] is absent does not work.
> 
> a simple script 'test':
> 
> #!/usr/local/bin/bash
> for i
> do
> echo $i
> done
> 
> With couple parameters should list all these parameters each on its dictinct
> line.
...
> But in this very bash the test produces a blank line only. It is
> highly provoking, for libtool cannot work because of it!

I get the expected behaviour ...

  # cat p ; ./p q r st
  #!/usr/local/bin/bash
  for f ; do echo $f ; done
  q
  r
  st

  - Parv

-- 



More information about the freebsd-ports mailing list