pgb wrote:

> What in my environment, post-script-run is making the second source not
> "see" the command line arguments?

Bash doesn't behave as you observe:

$ cat x1
cat > /tmp/x1 <<\EOF
echo source: arguments: "$@"
EOF

. /tmp/x1 -o foo -x bar quux
echo main arguments: "$@"
. /tmp/x1 -o foo -x bar quux

rm -f /tmp/x1
$ ../bash-3.2-patched/bash --version
GNU bash, version 3.2.39(14)-release (i386-apple-darwin9.2.2)
Copyright (C) 2007 Free Software Foundation, Inc.
$ ../bash-3.2-patched/bash ./x1 abcd
source: arguments: -o foo -x bar quux
main arguments: abcd
source: arguments: -o foo -x bar quux

I suspect the difference is due to the use of getopts, as Bernd
Eggink already posited.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


Reply via email to