how to run cygwin script in powershell

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.:

Source:

how to run cygwin script in powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply