Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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/inreview
and 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=2
I 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 CreditAttribution: dandaman commentedHere's a snippet from the verbose output of the operation:
Comment #4
dandaman CreditAttribution: 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 CreditAttribution: dandaman commentedI think the version I downloaded from CVS was the
HEAD
version, so I'm changing the tag, but this line looked the same in theAll-Versions-2.0-rc1
version.Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentedCommitted. Thx.
Comment #8
dandaman CreditAttribution: 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
cd
command does not recognize a path with spaces in it (at least it doesn't work on my Mac without this patch).Comment #9
dandaman CreditAttribution: 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 CreditAttribution: moshe weitzman commentedComment #11
greg.1.anderson CreditAttribution: greg.1.anderson commentedClosing as a duplicate of #766080: Windows support for drush: escaping the path to drush in backend invoke and elsewhere.