Question

I used to call this command to popup a simple balloon message when gradle build is complete. It had worked fine on cygwin's bash.

notifu /p "Gradle build complete" /m "Now you can take a look at the results" /d 0 > /dev/null

However, after switching to git's bash, the windows-style command line options such as /p /m have become resolved as cygwin drive letters: p:/ m:/. Obviously, notifu couldn't accept them.

enter image description here

Could anybody please tell me why it had been perfectly working on cygwin's bash, but not on git-bash now?

Was it helpful?

Solution

@astrounaut use like this in git-bash:

notifu //p "title" //m "message.."

OTHER TIPS

I used previously (in here) or seen (in that answer) the escape character '^' for Cygwin msys bash.

Try a ^ in front of the /, in order to convince Cygwin that /p isn't a drive path:

notifu ^/p "Gradle build complete" ^/m "Now you can take a look at the results" ^/d 0 > /dev/null
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top