Reputation: 53916
I've amended my .bash_profile to include :
gen='c:\\mydir\\"test dir"\\new'
but when I run "$gen"
receive error : sh.exe" cd c:\\mydir\\"test dir"\\new
The dir exists and running cd c:\\mydir\\"test dir"\\new
successfully navigates to this dir.
Is alias set correctly ?
Upvotes: 0
Views: 45
Reputation: 1548
Try this one (works for me):
gen='/c/Program Files'
Open a new git bash window (so the changes can be loaded):
cd "$gen"
Upvotes: 1