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:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; q=dns; s=default; b=cs
	EFcMSRuXjrfa3fRC0rwwUWFX/AghV/CITMfVkDet2SB6/I6pQ05raHIkTpNsRwpM
	IllfKVXtN/ehiPITPW2BNOdvqZBCkObonSm2Qt2A2A3D5koobnfxupJV+/F8ZS36
	mpazOvn41kUJ9zxjiAexydE+KPmxZgWJuHhvXzJCc=
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:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; s=default; bh=Pf8H4chS
	agMlFNRIVEU4RzVL7mI=; b=eu6oGZt/FMcmMkvC1bVdlIhPV1RyYoG53CN++Gp8
	vzEGgEVKne+CH99bqDoPMVpZgrbPZw17DOjfQ+ZeEqs67GHY3JXgeD09PXR76576
	fJJEqrPTbGrJoHMejK9sDhthSY7qqqjtdA42NgFNntEym6nVUnCg7NvB5Cjk0npF
	HQc=
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.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-pd0-f180.google.com
MIME-Version: 1.0
X-Received: by 10.66.232.129 with SMTP id to1mr4963946pac.29.1389744104668; Tue, 14 Jan 2014 16:01:44 -0800 (PST)
In-Reply-To: <CAAXzdLVnQuUsOy11LrrnkaX-BghPQBPO1Zyj0MNc1Z=B+SO14A@mail.gmail.com>
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>
Date: Tue, 14 Jan 2014 18:01:44 -0600
Message-ID: <CAAXzdLU8SPeZHjMktCxSC-Uxj3LMKEnsHh6b9ZCnJGhfTUkbWQ@mail.gmail.com>
Subject: Re: Interactive non-login shell and tilde expansion
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
X-IsSubscribed: yes

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

