drush-ops / drush-launcher

A small wrapper around Drush for your global $PATH.
GNU General Public License v2.0
237 stars 50 forks source link

drush launcher is broken in WSL #61

Closed chx closed 6 years ago

chx commented 6 years ago

I am running the Linux subsystem and

bash -x ../vendor/drush/drush/drush.launcher
+ $'\r'
../vendor/drush/drush/drush.launcher: line 9: $'\r': command not found
++ dirname -- ../vendor/drush/drush/drush.launcher
+ SELF_DIRNAME=$'../vendor/drush/drush\r'

(I replaced the full path with .. for privacy reasons.)

Apparently it has some problems with line endings.

chx commented 6 years ago

This is probably caused by the unusual extension that git doesn't recognize. I changed autocrlf = true to autocrlf = input based on https://stackoverflow.com/a/20653073/308851 and it fixed the problem.