在Windows下的Git的bash當我運行echo $PATH
命令提取Windows路徑指定的路徑,我得到了以下的輸出:如何使用bash
c/Windows/System32:/c/Python27:/c/Python27/Scripts:c/HashiCorp/Vagrant/bin:/c/Program Files (x86)/GNU/GnuPG/pub:/c/Program Files (x86)/Private Shell:/c/Program Files (x86)/OpenSSH/bin:/c/HashiCorp/Vagrant/bin:/c/Program Files/Common Files/Intel/WirelessCommon/:/c/Program Files/Boot2Docker for Windows:c/Windows/System32:/c/Python27:/c/Python27/Scripts
我需要做的是提取整個POSIX路徑,像/c/Program Files/Boot2Docker for Windows
到bash腳本中的變量,通過Boot2Docker for Windows
短語識別它。