Barran, Richard wrote:
> Also, when I want to run a script I've written myself, I just change to the
> directory the script is kept in, and type the script name. I don't prefix it
> with a "./"
> Am I missing something here?

Yes, maybe.  Does this work because you have "." on your path, or does
it so happen that you usually write scripts and store them in a
directory that is on the path?  Putting "." on the path is a security
concern, in that someone with access to your system could put a file in
your directory named, for example "ls" that would act like ls plus do
something nefarious.

Randy Kramer

PS: I thought the shebang line was required (!/bin/bash), or is it only
required if you are running a script that is for other than the default
shell?  Even so, it might be "good practice" to always include the
shebang line -- then it may be more likely to work if you take the
script to another system.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to