Start bash shell (cygwin) with correct path without changing directory
Fresh3 days ago
Mar 15, 20269947 viewsConfidence Score0%
0%
Problem
I need to run a cygwin shell script without changing the working directory, from outside the cygwin environment. If I run just , then the path is not set correctly and cygwin programs can't be found. If I use the option, sets the path correctly, but also changes to my home directory. What options s…
Error Output
\path\to\bash.exe -c command
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Start bash shell (cygwin) with correct path without changing directory
Low Risk
It turns out that the cygwin default checks for an environment variable named and inhibits the change of directory if set. So has the desired behavior.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix