delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/01/14/19:15:33

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT 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 AT cygwin DOT com
Subject: Re: Interactive non-login shell and tilde expansion
References: <CAAXzdLX9Rd462R1ND28mLe7y3dFRUKHo=NT1Eujc0FEP_T=AyA AT mail DOT gmail DOT com> <CAAXzdLWUcLERBgHsyUr7sG5YsL=ecArPiPnMQ3U+9oPG5ZohEA AT mail DOT gmail DOT com> <52D56BB4 DOT 2050806 AT cygwin DOT com> <CAAXzdLVnQuUsOy11LrrnkaX-BghPQBPO1Zyj0MNc1Z=B+SO14A AT mail DOT gmail DOT com>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019