I have Windows operating system. I am using GIT BASH. I have written script run.sh
and run it in this way:
$ ./run.sh
This code works correctly:
dir="/c/Windows"
app="notepad.exe"
$dir/$app
application notepad will open as a result.
But I can't run the following code:
dir="/c/Program Files/7-Zip"
app="7zFM.exe"
$dir/$app
as a result a get an error message:
./run.sh: line 63: /c/Program: No such file or directory
I try this:
dir='/c/"Program Files"/7-Zip'
app="7zFM.exe"
$dir/$app
as a result:
./run.sh: line 63: /c/"Program: No such file or directory
Then i try this:
dir=/c/Program\ Files/7-Zip
app="7zFM.exe"
$dir/$app
also error:
./run.sh: line 63: /c/Program: No such file or directory
How can i use space in directory name in GIT BASH ?