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: Interactive non-login shell and tilde expansion


On 1/14/2014 6:50 PM, Steven Penny wrote:
On Tue, Jan 14, 2014 at 10:54 AM, Larry Hall (Cygwin) wrote
Problem reports:       http://cygwin.com/problems.html

After running

     cygcheck -s -v -r

on both a "good" and "bad" Cygwin.bat I ran a "git diff" and noticed this

     +PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '

So I tried it and that looks to be the issue. However it doesnt make much sense
because even with "bad" Cygwin.bat PS1 seems to be already defined

     $ echo "$PS1"
     \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$

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

     $ export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '

     $ ~/foo.sh
     /home/Steven

My PS1 is also set.  I'm wondering why it doesn't show up in your output
above though.  Perhaps it's time to add 'set -x' to your ~/.bash_profile
and ~/.bashrc to see what gets invoked on your end.

--
Larry

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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


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