I wanted to try a completion test case in fhpd, so I tried running it on a just-build gdb I have. To my surprise it picked up the system gdb instead: opsy. fhpd ./gdb [0.0] Loaded executable file: /usr/bin/gdb If the argument to fhpd has a directory separator, I think it should be searched for in '.' first. Note that this is different from prepending '.' to PATH... I think fhpd should mimic the shell's lookup procedure.
Consider relative paths when searching for executable. * SysRoot.java (findExe): Consider relative paths.
*** Bug 6458 has been marked as a duplicate of this bug. ***
It still seems a little wrong to me. For example, if 'gdb' is a directory: opsy. fhpd gdb Error: gdb is a directory opsy. fhpd ./gdb Error: ./gdb is a directory IMO, the first one should pick gdb from $PATH. The second one should continue to fail as it does now. That is, mimic shell behavior.
Follow Unix ./executable convention. * SysRoot.java (findExe): Follow Unix ./executable convention. * TestSysRoot.java (testExePath): New % /work/scox/frysk/bld/x86_64-redhat-linux/frysk-core/frysk/bindir/fhpd ./gdb Error: ./gdb is a directory % /work/scox/frysk/bld/x86_64-redhat-linux/frysk-core/frysk/bindir/fhpd gdb [0.0] Loaded executable file: /usr/bin/gdb
*** Bug 6462 has been marked as a duplicate of this bug. ***
*** Bug 6463 has been marked as a duplicate of this bug. ***
*** Bug 6464 has been marked as a duplicate of this bug. ***