Is there a simple way to check if a script is running in Cygwin. We have a script that calls a utility that expects the paths passed to be windows so if we’re in Cygwin we have to convert the paths to windows paths.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
unameutility. From uname(1):Example code: