For example, if xhere
called below parameters from cmd.exe
,
C:\cygwin64\bin\mintty -e /bin/xhere /bin/bash "C:\Program Files"
xhere
must recieve "$2" = "C:\Program Files".
But currently xhere
recieves "$2" = ""C:\Program Files"". :-(
Maybe this causes by argv parser of cygwin. This patch is a dirty and adhock hack for this problem.
Run below commands:
apt-cyg install patch git
cd /tmp
git clone https://gist.githubusercontent.com/kou1okada/45ac4f49a45af076faa00ecc3c96d40c xhere.patch
cd xhere.patch
patch -b -p0 -d/ < xhere.patch