From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24012 invoked by alias); 31 Mar 2011 00:02:44 -0000 Received: (qmail 24004 invoked by uid 22791); 31 Mar 2011 00:02:43 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from out6.laposte.net (HELO out5.laposte.net) (193.251.214.123) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 31 Mar 2011 00:02:37 +0000 Received: from meplus.info (localhost [127.0.0.1]) by mwinf8404.laposte.net (SMTP Server) with ESMTP id D893A7000085 for ; Thu, 31 Mar 2011 02:02:35 +0200 (CEST) Received: from [192.168.1.133] (169.228.100-84.rev.gaoland.net [84.100.228.169]) by mwinf8404.laposte.net (SMTP Server) with ESMTP id 7BAD67000084 for ; Thu, 31 Mar 2011 02:02:35 +0200 (CEST) Message-ID: <4D93C4B7.1070505@laposte.net> Date: Thu, 31 Mar 2011 02:47:00 -0000 From: Cyrille Lefevre User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated base-files-4.0-6 References: <4D93C294.1090509@laposte.net> In-Reply-To: <4D93C294.1090509@laposte.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable X-me-spamlevel: not-spam X-me-spamrating: 40.000000 X-me-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrfeduiedrudekucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecu X-IsSubscribed: yes 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 X-SW-Source: 2011-03/txt/msg00848.txt.bz2 Le 31/03/2011 01:53, Cyrille Lefevre a =E9crit : > > > Le 18/03/2011 19:45, David Sastre a =E9crit : >> Version 4.0-6 of base-files has been uploaded. >> >> Base-files is a set of system configuration and setup files. Hi, PS1 *must not* be exported. historically, it is not exported to know if it is a shell is interactive=20 or not since only interactive shells set it. i.e., the following both solutions are equivalent. case $- in *i*) interactive ;; esac [ -n $PS1 ] && interactive if PS1 is exported, it is always set for subshells and this may cause=20 trouble in some script. also, from man bash : An interactive shell is one started without non-option arguments and without the -c option whose standard input and error are both connected to terminals (as determined by isatty(3)), or one started with the -i option. PS1 is set and $- includes i if bash is interactive, allowing a shell script or a startup file to test this state. Regards, Cyrille Lefevre --=20 mailto:Cyrille.Lefevre-lists@laposte.net -- 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