This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A $ in my path...


Sid Manning> Would this work?
SM> cd /home
SM> ln -s $HOME/csmith
SM> cd csmith
SM> export HOME=`pwd`

Problematic Routes> This worked nicely, and so I've added it to my
.bashrc - thanks!

I recommend protecting it to avoid repeating the process and getting
broken links; this should work (and also leaves $HOME alone if any of
the steps fail):

case "$HOME" in
   *$*)  cd /home &&  ln -s "$HOME" ./csmith && cd ./csmith && HOME="${PWD}";;
esac





> Andrew
> --
> View this message in context: http://www.nabble.com/A-%24-in-my-path...-tp20132275p20149694.html
> Sent from the Cygwin list mailing list archive at Nabble.com.
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>



-- 
Mark J. Reed <markjreed@gmail.com>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]