FreeBSD Port: bash-3.1.10

y at unlit.org y at unlit.org
Sat Feb 25 04:17:14 PST 2006


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.

This is from manpage:

for name [ in word ] ; do list ; done
       ....
       .....................................  If the in word  is  omit-
       ted,  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. That is:

$ ./test 1 2 3
1
2
3

But in this very bash the test produces a blank line only. It is highly
provoking, for libtool cannot work because of it!

Best regards,

Igor



More information about the freebsd-ports mailing list