X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=COHTT+SxARk9ZmfJ
	eNLqN4nyP2Yl8UZbN4Hf+z/CreJrV1vaMHgSlVpiXUUaVTtmXpLIadJTKVaLrdRo
	llzVbpcbeolmoqwRmOczXoubuqZM3zK110oS05u6jUUJUcffB8wOVh/UAV2XME19
	J6FLHupd1e+MG0PMgZmDFOb0yu0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=52oaBoTNBF6bVMOcm+kGuE
	KM01Q=; b=Dt9r7GHv2bGRVmBucZgZQJVoW4mIyQSHCpbi0rPTZRSIog/frDLJOr
	6DAcar5NzGQXsVgoK6Do5jJBCnsZASR7ufJQ6QeasB4Mj5KE3QiDSh+pw7/w5+66
	UtF7yvOkcWbvlMVUEvNFr13HpDLm3mQ284vrv0fPGPsbQ+TgNOBiw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173025pub.verizon.net
Message-id: <52D5D30E.2070606@cygwin.com>
Date: Tue, 14 Jan 2014 19:15:10 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: Interactive non-login shell and tilde expansion
References: <CAAXzdLX9Rd462R1ND28mLe7y3dFRUKHo=NT1Eujc0FEP_T=AyA@mail.gmail.com> <CAAXzdLWUcLERBgHsyUr7sG5YsL=ecArPiPnMQ3U+9oPG5ZohEA@mail.gmail.com> <52D56BB4.2050806@cygwin.com> <CAAXzdLVnQuUsOy11LrrnkaX-BghPQBPO1Zyj0MNc1Z=B+SO14A@mail.gmail.com>
In-reply-to: <CAAXzdLVnQuUsOy11LrrnkaX-BghPQBPO1Zyj0MNc1Z=B+SO14A@mail.gmail.com>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit

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

