Re: running source twice wont use arguments

2008-10-18 Thread Chet Ramey
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

Re: running source twice wont use arguments

2008-10-18 Thread Bernd Eggink
pgb schrieb: I have a bash script that I run using source because I want to be left in the environment that the script sets up after running the script. The script takes a few arguments and sets up an environment for me that includes library paths, classpaths, JAVA_HOME, appends to the PATH, crea

running source twice wont use arguments

2008-10-17 Thread pgb
ironment is not mantained after the script runs so that's not a good idea What in my environment, post-script-run is making the second source not "see" the command line arguments? -- View this message in context: http://www.nabble.com/running-source-twice-wont-use-arguments-tp20