
9 Dec
2007
9 Dec
'07
7:47 p.m.
Claus Reinke wrote:
./foo and foo are not interchangeable:
Yes, they are. What you have described is the behaviour of the Bourne shell when it parses a line and searches for a command. If it sees a path component in a command name, it searches from either the filesystem root or the current directory. Otherwise, it uses $PATH, which does not usually contain ".", for security reasons. As you can now imagine, this has no relation to how a Haskell program should be manipulating paths.