I have a shell script file named test.bash
If I want to obtain the path of this file, and I want to type
The problem is:
1. with a GNU "which" it will return a path name, for example /home/user/test.bash
2. but under Debian linux it will return
./test.bash
3. same thing happened in FreeBSD again
./test.bash
Thus can I say this "which" command is both broken in FreeBSD and Debian?
Thx.
If I want to obtain the path of this file, and I want to type
> which ./test.bash
The problem is:
1. with a GNU "which" it will return a path name, for example /home/user/test.bash
2. but under Debian linux it will return
./test.bash
3. same thing happened in FreeBSD again
./test.bash
Thus can I say this "which" command is both broken in FreeBSD and Debian?
Thx.