Re: why this simple bash script doesn't run on my G5 OS X Tiger?



In article <127npt56l4p0heb@xxxxxxxxxxxxxxxxxx>,
"G.T." <getnews1@xxxxxxxxxxxxxx> wrote:

Does ./testscript.sh work? I.e., is . in your path?

That's a bit obscure. What he needs to know is that an executable has to
be in the "executable path" that you've set in your $PATH environment
variable. Otherwise you have to give the full path to the thing.

../ is shorthand for "this directory" or "the working directory" or
"here."

If you're going to play with a lot of scripts, it might be worthwhile to
create a bin directory in your home directory, and move the scripts
there, and then add $HOME/bin to your path (in your .bashrc file). Then
you can just type the command anywhere you happen to be parked.
--
P_J
Vous de chouis, vous de choix ...
<prestor_jack@xxxxxxxxx>
.