-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Winpty can't launch (certain) executables via Windows NTFS symlink #98
Comments
Actually I found the main explanation for this: http://superuser.com/questions/927411/how-can-i-start-an-application-via-a-windows-symlink The most foolproof method would be to use to have:
Where But it would be great if winpty could somehow interpret symlinks the same way that cygwin does and shift the working directory appropriately for symlinks. (Perhaps this can be done with a flag). |
I'll look at this next week sometime. |
I don't think shells change the working directory when they start a program. I wonder if #81 is another bug in the executable searching code. |
I use Windows NTFS symlinks to symlink to Windows executables such as:
I put
C:\ProgramData\bin
into my SYSTEM PATH. Doing it this way (without the.cmd
extension) makes the symlink executable in Powershell and in Cygwin (although powershell appears to always launch the program in a new cmd window).However when I try to run
winpty prey console
, I end up with this:Cygwin and Powershell can both find
prey
in this way. However Winpty and I noticed CMD can't findprey
.They can only find it, if I rename
C:\ProgramData\bin\prey -> C:\ProgramData\bin\prey.cmd
, however I don't want to do this as this makes Cygwin unable to launchprey
without the.cmd
extension, and it also doesn't work at all because for some reason unlike Cygwin neither Powershell nor CMD changes its current working directory to the location of the symlink when executing through a symlink. So changing it toprey.cmd
won't solve any problems, but just make the symlink useless.The text was updated successfully, but these errors were encountered: