From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15739 invoked by alias); 15 Jan 2014 00:01:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15724 invoked by uid 89); 15 Jan 2014 00:01:46 -0000 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 Received: from mail-pd0-f180.google.com (HELO mail-pd0-f180.google.com) (209.85.192.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 15 Jan 2014 00:01:46 +0000 Received: by mail-pd0-f180.google.com with SMTP id q10so327773pdj.39 for ; Tue, 14 Jan 2014 16:01:44 -0800 (PST) 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) Received: by 10.68.95.133 with HTTP; Tue, 14 Jan 2014 16:01:44 -0800 (PST) In-Reply-To: References: <52D56BB4.2050806@cygwin.com> Date: Wed, 15 Jan 2014 00:01:00 -0000 Message-ID: Subject: Re: Interactive non-login shell and tilde expansion From: Steven Penny To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00152.txt.bz2 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