delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "Kazuyuki Hagiwara" <hagiwara AT zuken DOT co DOT jp> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: shopt igncr not working |
Date: | Wed, 4 Oct 2006 17:17:09 +0900 |
Message-ID: | <007901c6e78d$7cde0d50$33e0f9a0@cr5lsdev> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <BAY105-F320FABCC9D765DDAD5B006D21D0@phx.gbl> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
Hi Frank, all the three methods work fine here. some points ... Is the bash version right? [~/work] bash --version GNU bash, version 3.1.17(9)-release (i686-pc-cygwin) Copyright (C) 2005 Free Software Foundation, Inc. [~/work] ) - first line of the shell script # is required In the shopt line like ... shopt -s igncr # ) - $HOME/.bash_profile .bash_profile is not automatically executed, at the startup of script. ) - "-O igncr" at invocation of bash If your script calls another bash script, you have to write in main script like .. bash another_bash_script -O igncr arg1 arg2 ) -----Original Message----- ) From: cygwin-owner AT cygwin DOT com ) [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Frank Illenseer ) Sent: Wednesday, October 04, 2006 3:49 PM ) To: cygwin AT cygwin DOT com ) Subject: shopt igncr not working ) ) Hi all, ) ) i am experiencing problems with the newly introduced shopt ) "igncr" to solve ) the problem with ) CRNL in shell scripts on binary mounts. ) ) Unfortunately this is not working for me at all: I tried all ) possible places ) - first line of the shell script ) - $HOME/.bash_profile ) - "-O igncr" at invocation of bash ) but every time I got the well known errors from bash coming ) from the \r ) being present in the ) shell script. (I am doing this on a binary mount.) ) ) Any comments/help is appreciated. ) ) @Eric: Sorry for bothering again and also sorry that I bring ) the bad news ) for your really good solution! ) ) ) Best regards ) Frank ) --------------------------------- Kazuyuki Hagiwara -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |