Interactive non-login shell and tilde expansion

Steven Penny svnpenn@gmail.com
Wed Jan 15 00:01:00 GMT 2014


On Tue, Jan 14, 2014 at 5:50 PM, Steven Penny wrote
> However it doesnt make much sense because even with "bad" Cygwin.bat PS1 seems
> to be already defined

To answer my own question, PS1 is already defined, but not exported. This is
because the export happens in /etc/profile, which is called with the "--login"
option. Example

    $ ~/foo.sh
    /home/Steve0^G

    $ export PS1

    $ ~/foo.sh
    /home/Steven

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



More information about the Cygwin mailing list