Date: Mon, 03 Dec 2012 18:09:51 +0100 From: rank1seeker@gmail.com To: hackers@freebsd.org Subject: $* and $@ exhibit same behaviour -> those of $* Message-ID: <20121203.170951.188.1@DOMY-PC>
index | next in thread | raw e-mail
I've noticed this under 9.0-RELEASE-p5
#!/bin/sh
#####################################################
ftest_dot ()
{
local i
for i in $*
{
echo "$i"
}
}
ftest_monkey ()
{
local i
for i in $@
{
echo "$i"
}
}
echo ============
ftest_dot one 'spaced path' two ''
echo ============
ftest_monkey one 'spaced path' two ''
echo ============
exit 55
Output:
-------
============
one
spaced
path
two
============
one
spaced
path
two
============
Expected output is:
-------------------
============
one
spaced
path
two
============
one
spaced path
two
============
I hope fix'll get into 9.1
Domagoj Smolčić
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121203.170951.188.1>
