문제

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?

도움이 되었습니까?

해결책

@astrounaut use like this in git-bash:

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

다른 팁

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top