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.

Comments

chris.stone’s picture

StatusFileSize
new777 bytes

Sorry forgot to attach the patch

moshe weitzman’s picture

Assigned: Unassigned » greg.1.anderson
greg.1.anderson’s picture

Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This 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.

moshe weitzman’s picture

Status: Closed (won't fix) » Closed (duplicate)