Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about mintty

Read more about mintty

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - mintty

How do I get exit code of script run with mintty.exe?

In Windows, I'm excecuting a bash script using Cygwin64 and mintty.exe, this way: mintty.exe -e C:\some_path\some_bash_script.sh I need to capture the script's errors but %ERRORLOVEL% is always 0, eve...
test-img

stander

windows

cygwin

exit-code

errorlevel

mintty

Votes: 0

Answers: 1

Latest Answer

mintty does not return any error code, what you can do is : mintty.exe -e bash -c "C:\some_path\some_bash_script.sh; echo $? > /c/temp/return-code" and test the content of C:\temp\return...
test-img

Philippe

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved