Re: chdir errors: Unable to bootstrap stow
James Jong <[email protected]> Sun, 21 Apr 2013 19:56:15 -0400
| Newsgroups | gmane.comp.gnu.stow.general |
|---|---|
| Message-ID | <CAD4ivxVY3rAdjKGppOh+5PYDhDbFLK+n7i5c7QH6C2=c+58SqQ@mail.gmail.com> |
--047d7bf0cf50ca9dd304dae7b351 Content-Type: text/plain; charset=ISO-8859-1 Thank you Adam. That fixed it. James On Sun, Apr 21, 2013 at 5:50 PM, Adam Spiers <[email protected]> wrote: > On Sun, Apr 21, 2013 at 04:30:02PM -0400, James Jong wrote: > > I have the following in my .stowrc: > > > > --dir=~/opt/stow_all/stow_storage > > --target=~/opt/stow_all/stow_appear > > --ignore='~' > > --ignore='^CVS' > > > > and I have built stow from the git repository at: > > ~/opt/stow_all/stow_storage/stow_2.2.0_canonical_paths > > > > i.e. the above path holds the actual bin, lib and share for stow. > > > > I am trying to bootstrap stow itself, so I did: > > > cd ~/opt/stow_all/stow_storage > > > ./stow_2.2.0_canonical_paths/bin/stow stow_2.2.0_canonical_paths > > > > but this returned: > > > > Loading defaults from /home/avazquez/.stowrc > > stow: ERROR: canon_path: cannot chdir to ~/opt/stow_all/stow_storage from > > /nfs/titan7/u125/opt/stow_all/stow_storage > > > > Is there anything that I am doing wrong? > > Yes, shell expansion is not performed on the contents of .stowrc, so > you cannot use the '~' shorthand for home directories. I'd happily > accept a pull request to implement that feature however ;-) > > --047d7bf0cf50ca9dd304dae7b351 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thank you Adam. That fixed it.=A0<div><br></div><div style= >James</div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_qu= ote">On Sun, Apr 21, 2013 at 5:50 PM, Adam Spiers <span dir=3D"ltr"><<a = href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</= a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"><div class=3D"HOEnZb"><div class=3D"h5">On S= un, Apr 21, 2013 at 04:30:02PM -0400, James Jong wrote:<br> > I have the following in my .stowrc:<br> ><br> > --dir=3D~/opt/stow_all/stow_storage<br> > --target=3D~/opt/stow_all/stow_appear<br> > --ignore=3D'~'<br> > --ignore=3D'^CVS'<br> ><br> > and I have built stow from the git repository at:<br> > ~/opt/stow_all/stow_storage/stow_2.2.0_canonical_paths<br> ><br> > i.e. the above path holds the actual bin, lib and share for stow.<br> ><br> > I am trying to bootstrap stow itself, so I did:<br> > > cd ~/opt/stow_all/stow_storage<br> > > ./stow_2.2.0_canonical_paths/bin/stow stow_2.2.0_canonical_paths<= br> ><br> > but this returned:<br> ><br> > Loading defaults from /home/avazquez/.stowrc<br> > stow: ERROR: canon_path: cannot chdir to ~/opt/stow_all/stow_storage f= rom<br> > /nfs/titan7/u125/opt/stow_all/stow_storage<br> ><br> > Is there anything that I am doing wrong?<br> <br> </div></div>Yes, shell expansion is not performed on the contents of .stowr= c, so<br> you cannot use the '~' shorthand for home directories. =A0I'd h= appily<br> accept a pull request to implement that feature however ;-)<br> <br> </blockquote></div><br></div> --047d7bf0cf50ca9dd304dae7b351--