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

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: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 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.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 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>
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 AT gmail DOT com>
To: cygwin AT cygwin DOT com
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

- Raw text -


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