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">&lt;<a =
href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</=
a>&gt;</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>
&gt; I have the following in my .stowrc:<br>
&gt;<br>
&gt; --dir=3D~/opt/stow_all/stow_storage<br>
&gt; --target=3D~/opt/stow_all/stow_appear<br>
&gt; --ignore=3D&#39;~&#39;<br>
&gt; --ignore=3D&#39;^CVS&#39;<br>
&gt;<br>
&gt; and I have built stow from the git repository at:<br>
&gt; ~/opt/stow_all/stow_storage/stow_2.2.0_canonical_paths<br>
&gt;<br>
&gt; i.e. the above path holds the actual bin, lib and share for stow.<br>
&gt;<br>
&gt; I am trying to bootstrap stow itself, so I did:<br>
&gt; &gt; cd ~/opt/stow_all/stow_storage<br>
&gt; &gt; ./stow_2.2.0_canonical_paths/bin/stow stow_2.2.0_canonical_paths<=
br>
&gt;<br>
&gt; but this returned:<br>
&gt;<br>
&gt; Loading defaults from /home/avazquez/.stowrc<br>
&gt; stow: ERROR: canon_path: cannot chdir to ~/opt/stow_all/stow_storage f=
rom<br>
&gt; /nfs/titan7/u125/opt/stow_all/stow_storage<br>
&gt;<br>
&gt; 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 &#39;~&#39; shorthand for home directories. =A0I&#39;d h=
appily<br>
accept a pull request to implement that feature however ;-)<br>
<br>
</blockquote></div><br></div>

--047d7bf0cf50ca9dd304dae7b351--