This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Cygwin.bat doesn't save original directory in OLDPWD after login
- From: Andry <andry at inbox dot ru>
- To: cygwin at cygwin dot com
- Date: Sun, 17 Aug 2008 16:50:10 +0400
- Subject: Cygwin.bat doesn't save original directory in OLDPWD after login
- Reply-to: Andry <andry at inbox dot ru>
Hello cygwin,
If run cygwin from cmd.exe from random directory, for example, from
"c:\blablabla", then after login OLDPWD would be "/usr/bin" instead
original directory. So command cd "$OLDPWD" just after login
restores wrong directory. This is because batch file has been wroten
incorrectly.
This is correct:
"%~dp0bin\bash" --login -i
--
Best regards,
Andry mailto:andry@inbox.ru
--
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/