Getting /bin/bash: -c: line 0: unexpected EOF while looking for matching `''

后端 未结 1 653
醉话见心
醉话见心 2020-12-20 06:50

I have a problem with my Gitbash. whenever I am running below drush command I am getting error

command : drush @site sqlq \"select * from tablename\"

error :

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-20 07:17

    Git bash means Git for Windows.

    Check first your .bashrc (in %USERPROFILE%): if you have one, make sure it does not echo any string to stdout when executed (you can see that by typing in git bash source /c/Users//.bashrc.

    Then try again with a git bash done from a CMD where you set a simplified PATH

    For testing, download [PortableGit-2.17.0-64-bit.7z.exe][2] and uncompress its content anywhere you want.

    set G=c:\path\to\latest\git
    set PATH=%G%\bin;%G%\usr\bin;%G%\mingw64\bin
    set PATH=%PATH%;C:\windows\system32;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\
    

    Add also the PATH for the drush command, then try again said command in a git bash done from that CMD with that simplified PATH.

    0 讨论(0)
提交回复
热议问题