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

X-Spam-Check-By: sourceware.org
Message-ID: <45508B99.5040904@byu.net>
Date: Tue, 07 Nov 2006 06:35:21 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666
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>
In-Reply-To: <45508870.9090603@adacore.com>
X-IsSubscribed: yes
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Nicolas Roche on 11/7/2006 6:21 AM:
> 
> The only remaining issue is when bash is invoked as /bin/sh and that the
> shell is non interactive. In this case, the bash documentation says that no
> startup file is read ..... So I don't know how to set igncr by
> default.... The issue occurs for example with mklibgcc when building GCC.
> 
> Is there any way to set the default behavior of sh even in non
> interactive mode ?

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.  Outside of bash, you can manually set it (for example, in the
Windows environment).  Either way, when a new instance of bash is started,
even if by the name /bin/sh, it should recognize the SHELLOPTS settings
inherited into its environment.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUIuZ84KuGfSFAYARAk2WAJ9iK0B3wgiPXmJgYntPrE7FhUPm7ACcDzHO
cCCAy64EgeNiyB0YC0NXgaU=
=WFHP
-----END PGP SIGNATURE-----

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