On 17 Jul 2002 10:44:36 +0800
[EMAIL PROTECTED] wrote:
> No, your script still starts with #!/bin/bash, but instead of saying
> ./myscript.sh or sh ./myscript.sh to run it, you'd say source myscript.sh
> ... =)
Uurrppss... yes I found that out the hard way. I have only one more
problem now: one of the if-then-else routines has an "exit" command. It
was supposed to be used to terminate the script (and the shell it spawns)
in case a file wasn't found (or the user doesn't enter any arguments). If
I use "source foo.sh", however, won't it exit the user shell entirely (no
sub shell spawned so the current shell is exited)?
Thanks again!!! God bless!
-- [Manny Amador] ----------------------------- [[EMAIL PROTECTED]] --
Member: Philippine League for Democratic Telecommunications, Inc.
"Affordable Access for All!"
-- [Distributed Development Network (DDN)] ------- [www.distdev.com] --
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]