> Unix will only execute files that are either in the predefined path or are > specified by a full path name. This is a security measure. > > For example, if you have the command ‘ls’ to list a directory and someone > writes an executable named ‘ls’ than instead deletes the current directory > the could be bad. > > So, you define a list of folders (called the PATH) that contain all the > programs that you generally want to run. > > For example, my PATH differs from the default in that I added $HOME/bin to > the end of it so that the scripts that I write are run-able without my typing > ~/bin/myscript, I can just type myscript instead. Since I added it at the > END, nothing in my ~/bin/ will override a ‘real’ command in on of the default > directories. I would still have to type ~/bin/myscript (or ./myscript if I > was already in ~/bin/) to execute my own ls command.
Thank you LuKreme! Yours (and Doug's) were the most comprehensive explanation for me.. in the sense that now I know (even without further study) just what I wanted to know to be able to set myself up to execute commands just by typing only the command. You see the mind of the poster as well as the thing you are explaining. :-) And I appreciate the book recommendation, as I will read it during one of my future 'study vacations'. -Govinda -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
