bug-bash
[Top][All Lists]
Advanced

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

Re: 'for' builtin without 'in' doesn't use the positional parameter


From: Paul Jarc
Subject: Re: 'for' builtin without 'in' doesn't use the positional parameter
Date: Mon, 04 Nov 2002 15:33:49 -0500
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

djedi@altern.org wrote:
> $ cat > foo.sh <<EOF
>> for i
>> do
>> echo ">>>$i<<<"
>> done
>> EOF

$ cat foo.sh
for i
do
echo ">>><<<"
done
$ cat > foo.sh <<'EOT'
> for i
> do
> echo ">>>$i<<<"
> done
> EOT
$ bash foo.sh bar or not
>>>bar<<<
>>>or<<<
>>>not<<<


paul




reply via email to

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