Re: sh sourcing bug? test bug?

2003-01-15 Thread Tim Robbins
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

sh sourcing bug? test bug?

2003-01-14 Thread Chad Kline
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

Re: sh sourcing bug? test bug?

2003-01-14 Thread Dan Nelson
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