public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Interactive non-login shell and tilde expansion
Date: Wed, 15 Jan 2014 00:15:00 -0000	[thread overview]
Message-ID: <52D5D30E.2070606@cygwin.com> (raw)
In-Reply-To: <CAAXzdLVnQuUsOy11LrrnkaX-BghPQBPO1Zyj0MNc1Z=B+SO14A@mail.gmail.com>

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

  parent reply	other threads:[~2014-01-15  0:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14  3:54 Steven Penny
2014-01-14  6:26 ` Steven Penny
2014-01-14 16:54   ` Larry Hall (Cygwin)
2014-01-14 23:01     ` Steven Penny
2014-01-14 23:50     ` Steven Penny
2014-01-15  0:01       ` Steven Penny
2014-01-15  0:15       ` Larry Hall (Cygwin) [this message]
2014-01-15  0:22         ` Steven Penny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52D5D30E.2070606@cygwin.com \
    --to=reply-to-list-only-lh@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).