Chad Kline wrote:
fbsd 4.7
SCRIPT
---
echo 1:$1
echo 2:$2
---
COMMAND LINE
---
. ./script x y
---
OUTPUT
---
1:
2:
---
shouldn't the output be:
1:x
2:y
Being able to specify command line arguments to the script being sourced
is a Korn shell extension that has been
fbsd 4.7
SCRIPT
---
echo 1:$1
echo 2:$2
---
COMMAND LINE
---
. ./script x y
---
OUTPUT
---
1:
2:
---
shouldn't the output be:
1:x
2:y
???
in bash, x y arguments work as expected,
but in FBSD 4.7 and NBSD 1.6L, the arguments
get trashed.
ps. i used slackware about 7 years ago,
and
In the last episode (Jan 14), Chad Kline said:
fbsd 4.7
SCRIPT
---
echo 1:$1
echo 2:$2
---
COMMAND LINE
---
. ./script x y
---
OUTPUT
---
1:
2:
---
shouldn't the output be:
1:x
2:y
Not sure. The sh defined at opengroup.org doesn't even have a dot
command. In FreeBSD's