I have an executable script test under the full path /home/sawa/foo/bar/test. The directory /home/sawa/foo/bar is within $PATH, and has priority over the default ones including /usr/bin. When I do
`which test`
to see whether this command is correctly recognized, it returns
/home/sawa/foo/bar//test
with the double slash //. I know that there is a built in command with the same name test, and when I remove mine, this one under /usr/bin/test is returned by which, so I think it's interfering in some way.
- What does this double slash mean here, and why is it appearing here?
- My executable
testdoes not seem to work correctly. Why is that?