-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 28 Aug 2003, stm23 wrote:
> hi, i was wondering if anybody could help me with a simple problem.
> when i use the bash shell command-line to execute commands i must type "./"
> before the command
>
> eg ./program.exe
>
> i know that this is done to specify that the command is to be executed in the
> current directory, but at the UOC computer labs this is not needed.
>
> eg i would only need to type:
>
> program.exe
You can modify the PATH environment variable to achieve this, for bash try
something like:
export PATH=${PATH}:.
WARNING: You are STRONGLY advised not do this. Especially do not do this
for root's shell, as it can lead to a trivial compromise by placing
executables in places like /tmp. Although in the form above it does limit
it to typos because it's last in the path, it's still a risk.
Personally, I am so used to typing ./prog for things in the current
directory I don't even notice it any more.
- --
David Zanetti <[EMAIL PROTECTED]> | (__)
#include <geek/unix.h> | ( oo Mooooooo
"Hope.. is a dangerous thing." | /(_O ./
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6
iD8DBQE/Tbi8T21+qRy4P+QRAjP8AJ9SfvCnHMTfZ3VjgumGtW37TnO36wCgrHss
jgWLEmOk0gJHV3siPMiQ4W8=
=WiSf
-----END PGP SIGNATURE-----