delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/25/11:51:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Fri, 25 Mar 2005 11:51:01 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: base-files patch
Message-ID: <20050325165101.GC29174@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <032520051637 DOT 20006 DOT 42443E460000F49E00004E2622058864420A050E040D0C079D0A AT comcast DOT net>
Mime-Version: 1.0
In-Reply-To: <032520051637.20006.42443E460000F49E00004E2622058864420A050E040D0C079D0A@comcast.net>
User-Agent: Mutt/1.5.6i

On Fri, Mar 25, 2005 at 04:37:26PM +0000, Eric Blake wrote:
>Considering the recent thread on rxvt and PS1, I propose the following
>patches to /etc/default/etc/profile.  In addition to fixing the default
>PS1 for bash to correctly delineate non-printing characters, it fixes
>the following additional bugs: When using case, you do not need to
>quote a command substitution; this is particularly important since
>"`""`" is non-portable, just use case `""` instead.  Sorting is not
>necessarily strictly alphanumeric in other locales (not that cygwin has
>good locale support, but still...).  Also, `info coreutils dircolors'
>recently changed to recommend eval "`dircolors ...`", due to the
>security hole mentioned in
>http://lists.gnu.org/archive/html/bug-coreutils/2004-12/msg00058.html.

I'm not sure I understand the removal of "``" for "portability" in the
same patch which changes

  A=foo
  export A

to
  export A=foo

I've never seen a shell that didn't understand "``" but I have seen shells
which didn't understand export A=foo.

Personally, I wish we wouldn't play any prompt games in the system profiles.
I'd rather just either just have the standard prompt that the shell uses
or my own customized version rather than assuming that we all know what
the cygwin users want for a prompt.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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