Under cygwin
Cloned drush repo to /srv/www/drush. Created symlink to drush/drush in /usr/local/bin.
When I try to run drush using either the full path to drush or the symlink I receive the following output
PHP Warning: require(/home/CJS/includes/bootstrap.inc): failed to open stream: No such file or directory in /home/CJS/C:\cygwin\srv\www\drush\drush.php on line 16
PHP Fatal error: require(): Failed opening required '/home/CJS/includes/bootstrap.inc' (include_path='.:/php/includes') in /home/CJS/C:\cygwin\srv\www\drush\drush.php on line 16
If I change the symlink in usr/local/bin to reference drush.php the issue resolves itself.
I am able to run drush under msysgit using either drush script or drush.php.
After looking through the drush script it appears this is the following code is the cause of the issue:
if [ -n "$CYGWIN" ] ; then
SCRIPT_PATH="`cygpath -w -a -- "$SCRIPT_PATH"`"
fi
Specifically -w which is creating Windows style names. After replace -w with -u to create Unix style names the issue resolved itself. This change has does not affect the functionality of the drush script under msysgit.
I've attached a patch with my change.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drush-fix-pathnames.patch | 777 bytes | chris.stone |
Comments
Comment #1
chris.stone commentedSorry forgot to attach the patch
Comment #2
moshe weitzman commentedComment #3
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.
Comment #4
moshe weitzman commentedhttps://github.com/drush-ops/drush/pull/102