Cygwin
ln -s /cygdrive/c/ /c
- dos2unix
- jq
- curl
- postgres
- wget
- xmllint
- openssh (The Windows ssh/scp requires Windws path for -i.)
- nc
This is required to pass a path as a parameter to a Windows executable, like java.exe
.
if [[ $(uname -s) == CYGWIN* ]]; then
# Running under Cygwin.
JAR=`cygpath -w ${JAR}`
fi
Note: Double marks (aka squar brackets) is required.
explorer `cygpath -d src/test`
A useful script:
#!/bin/bash
OPEN_PATH="."
if [ "$#" -gt "0" ]; then
OPEN_PATH=$1
fi
explorer `cygpath -d $OPEN_PATH`
C:\cygwin64\bin\bash.exe -l (The "-l" option is required to setup PATH.)
C:\cygwin64\bin\bash.exe -l -c "'/cygdrive/c/Users/me/call_a_script.sh'"