dot in bash scripts
by igadoter from LinuxQuestions.org on (#5KQ7J)
Hi, I today tested some simple scripts and noticed something I don't understand. Say
Code:. fileworks fine in $HOME directory. I mean if script is called in $HOME as working directory. However I have to put prefix
Code:. ./fileto make script works outside $HOME. If I don't do that I get error 'file not found'. That's a mess.
Code:. fileworks fine in $HOME directory. I mean if script is called in $HOME as working directory. However I have to put prefix
Code:. ./fileto make script works outside $HOME. If I don't do that I get error 'file not found'. That's a mess.