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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: References: <52D56BB4 DOT 2050806 AT cygwin DOT com> Date: Tue, 14 Jan 2014 18:01:44 -0600 Message-ID: Subject: Re: Interactive non-login shell and tilde expansion From: Steven Penny To: cygwin AT cygwin DOT 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