Closed (duplicate)
Project:
Drush
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 May 2009 at 04:54 UTC
Updated:
23 Jun 2010 at 21:46 UTC
Jump to comment: Most recent file
In my experience tonight on my Mac, I found that the untarring commands were failing because part of the path contained a space or two and the system was not escaping them. No errors showed up until I added the --verbose=2 param, I believe. Once I made an alias of that folder that had no spaces in the path the downloading and installing of the modules working correctly.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 477720-drush-svn-spaces2.patch | 3.18 KB | dandaman |
| #8 | 477720-drush-svn-spaces.patch | 1.98 KB | dandaman |
| #4 | 477720-drush-tar-spaces.patch | 731 bytes | dandaman |
Comments
Comment #1
moshe weitzman commentedI did not verify this but sounds critical. Are you saying that your drupal site is located in a path with spaces in it?
Comment #2
dandaman commentedYeah. If I have some time today I'll further try to debug it and put together a patch, but I had my site at
/User/Documents/public_html/inreviewand I could update from there, but when I tried to run an update command via the actual directory (the above dir is a symlink from/Users/Documents/workspace/Local inReview Trunk) then it did not work. When I tried updating within the path with spaces, it at first looked OK, but when I ran it with--verbose=2I found that the "tar" commands were erroring out because it exected the space to start the next part of the "tar" command. Hope that helps.Comment #3
dandaman commentedHere's a snippet from the verbose output of the operation:
Comment #4
dandaman commentedOK, here's a patch that fixed it for me. I just put quotes around the path that had spaces and now it works.
Comment #5
dandaman commentedI think the version I downloaded from CVS was the
HEADversion, so I'm changing the tag, but this line looked the same in theAll-Versions-2.0-rc1version.Comment #6
moshe weitzman commentedCommitted. Thx.
Comment #8
dandaman commentedI came across this problem again with some of the code for checking the status of the SVN repository before upgrade. A patch is included to add quotes around the path. This fixes the problem where the
cdcommand does not recognize a path with spaces in it (at least it doesn't work on my Mac without this patch).Comment #9
dandaman commentedActually, this patch adds the quote to allow spaces in a couple other places as well and worked a bit better in my case.
Comment #10
moshe weitzman commentedComment #11
greg.1.anderson commentedClosing as a duplicate of #766080: Windows support for drush: escaping the path to drush in backend invoke and elsewhere.