I have a desktop shortcut that starts a cygwin bash script and I want the mintty terminal to stay open after my script terminates so that I can look at it's output. For this purpose I'm using the -h always mintty option[1].
The window does stay open but the output is unhelpfully cleared by mintty just as my script terminates(!!!). Seems like a bad joke. Am I missing something? I've verified this behavior even with a one line script with just an echo.
Note [1] -h is described like this in the man page:
-h, --hold never|start|error|always
Determine whether to keep the terminal window open when the command has finished and no more processes are connected to the terminal.