delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/07/10:16:21

X-Spam-Check-By: sourceware.org
Message-ID: <45509C9D.5090402@adacore.com>
Date: Tue, 07 Nov 2006 15:47:57 +0100
From: Nicolas Roche <roche AT adacore DOT com>
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: bash CR and backquotes trouble
References: <454A2CE4 DOT 7030805 AT adacore DOT com> <454A3DC0 DOT 9040305 AT cygwin DOT com> <454A33A8 DOT 9050508 AT adacore DOT com> <454A47CD DOT 50009 AT cygwin DOT com> <454A3BB4 DOT 3060808 AT adacore DOT com> <454A5E6E DOT 9020704 AT cygwin DOT com> <45508870 DOT 9090603 AT adacore DOT com> <45508B99 DOT 5040904 AT byu DOT net> <45508FC1 DOT 3050105 AT byu DOT net>
In-Reply-To: <45508FC1.3050105@byu.net>
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

Eric Blake a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> According to Eric Blake on 11/7/2006 6:35 AM:
>   
>> Have you tried the experimental bash-3.2.3-5, and exporting SHELLOPTS in
>> your environment with igncr specified?  Within bash, SHELLOPTS is
>> read-only, but reflects the current shell option settings, so you merely
>> need export it so that it is in the environment instead of a shell local
>> variable.
>>     
>
> A slight clarification: once in bash, the read-only SHELLOPTS only tracks
> actions involving 'set -o', it does not track actions involving 'shopt -s'
> or other back doors to affecting shell options.  I noticed this with the
> 'history' shell option as well as the 'igncr' shell option, so it is not
> cygwin-specific; however, I'm not sure whether to call it a bug or a
> feature in upstream handling of how SHELLOPTS is handled.
>   

Thanks for the tip. Working also with 3.2.1(4). I am not using shopt in 
scripts so everything should be OK.

Just one last question, when 3.2 is planned to be push in the mainstream 
(i.e not experimental)

Thanks to everyone for the help

Nicolas



--
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