3 ms·
I've heard of this %PATH% thing which allows the user to control where they place executables https://github.com/sebkur/forceterm/blob/release-1.1.0/src/main/ja
by mdaniel 1y ago
I've heard of this %PATH% thing which allows the user to control where they place executables https://github.com/sebkur/forceterm/blob/release-1.1.0/src/main/java/de/topobyte/forceterm/ForceTerm.java#L71 https://github.com/sebkur/forceterm/blob/release-1.1.0/src/m...
- RonanSoleste 1y agoAlso not very platform independent
- sebkur 1y agoWell, it does check if we are on Windows just one line before: https://github.com/sebkur/forceterm/blob/release-1.1.0/src/main/java/de/topobyte/forceterm/ForceTerm.java#L70 https://github.com/sebkur/forceterm/blob/release-1.1.0/src/m...
- alganet 1y agoTrivia: Windows also has %PATHEXT%. It's a set of executable extensions like bat, exe, com, cmd. It is what allows calling `program` and reaching `program.exe`.
- TheTrueScotsman 1y ago[dead]
- sebkur 1y agohmm, I agree, this is pretty hard-coded. It should work for a default installation of git-bash, but of course, the user could have chosen a different location at install time. I'm not even sure how popular git bash is on Windows, I vaguely remember cygwin might be something many user that care to use a terminal might have installed?