You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this was last posted on over a year ago--No clue if you ever figured this out or not.
I have run into the same issue in a project of mine. After digging a bit into the code, it seems the error is because the commandExistsWindows() functions include a RegEx pattern to check for valid file names before testing if the command exists or not. This check will return false if the path given includes a :, which is normally not allowed in a Windows path, but is required for an absolute path, e.g. C:\Program Files\....
I found a better RegEx pattern for matching paths and will try to issue a pull request later today.
Hi, first of all: Thanks for your work!
I noticed the following inconsistencies between Windows and Mac/Linux:
On Mac/Linux an absolute path to an executable file returns true
e.g.
/usr/bin/ssh
-> trueOn Windows an absolute path is not accepted:
e.g.
c:\Program Files\putty\plink.exe
-> falseWhile this just seems to be an inconsistency, the following is certainly a bug:
On Mac/Linux all directories are recognized as "existing commands":
e.g.
/usr
-> trueThe text was updated successfully, but these errors were encountered: