/etc/profile always does a "cd $HOME"
Dave
d_inabox@yahoo.com
Mon May 23 23:54:00 GMT 2005
>>> i'd like to use cygwin from a normal windows-app. The problem is, that i
>>> need a login-shell, so that all environment-vars are properly set. The
>>> problem: bash -li always changes the current workdir!
>The point was "a flly functional" environment, and just adding /bin to
>the PATH is only half the things, i'd need to do.
If you have a recent* /etc/profile from base-files, pretend you're chere. From a
batch file:
set CHERE_INVOKING=y
bash -li <somecommand>
set CHERE_INVOKING=
>From a sh script:
CHERE_INVOKING=y && bash -li <somecommand>
Dave.
[chere maintainer]
* Well, less than 6 months old.
__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail
--
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/
More information about the Cygwin
mailing list