Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2006 15:21:39 +0300
From:      y@unlit.org
To:        obrien@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: bash-3.1.10
Message-ID:  <E1FCyQd-00008G-SU@ygrex>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1FCyQd-00008G-SU>