Question:
I am trying to run a cygwin script in powershell. How can I do that?
I tried giving full path of the scripts followed by args . it isnt working
example : /c/script/path/script args
Answer:
Use either /cygdrive/c/script/path/script
or C:/script/path/script
(note the capital C
and lack of leading slash in the latter path). Plus, need to run the script with the correct interpreter, e.g.:
1 2 |
& C:\cygwin\bin\bash.exe /cygdrive/c/script/path/script ... |