我在 Windows 10 上使用 Acquia 的 DevDesktop。对于 shell,我使用的是 babun 的 zsh。Acquia 为drush
Drupal 提供命令行界面。
命令本身似乎没问题:
{ drush } » pwd /cygdrive/c/Program Files (x86)/DevDesktop/tools/vendor/drush/drush
{ drush } » ./drush /cygdrive/c/Program Files (x86)/DevDesktop/tools/vendor/drush/drush
Execute a drush command. Run `drush help [command]` to view command-specific help. Run `drush topic` to read even more documentation.
...
我为它创建了一个符号链接,但它不起作用:
{ drush } » ls -lha /home/username/bin/drush /cygdrive/c/Program Files (x86)/DevDesktop/tools/vendor/drush/drush
lrwxrwxrwx 1 username None 73 Aug 1 23:29 /home/username/bin/drush -> '/cygdrive/c/Program Files (x86)/DevDesktop/tools/vendor/drush/drush/drush'
{ drush } » cd ~ /cygdrive/c/Program Files (x86)/DevDesktop/tools/vendor/drush/drush
{ ~ } master »
{ ~ } master » drush
Could not open input file: /home/username/bin/drush
根据这个答案,我尝试更改权限并确保行尾正确,但它仍然不起作用。
{ ~ } master » chmod 775 /home/username/bin/drush
{ ~ } master » dos2unix -F /home/username/bin/drush
dos2unix: converting file /home/username/bin/drush to Unix format...
{ ~ } master » drush
Could not open input file: /home/username/bin/drush
我究竟做错了什么?