This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: shopt igncr not working
- From: "Kazuyuki Hagiwara" <hagiwara at zuken dot co dot jp>
- To: <cygwin at cygwin dot com>
- Date: Wed, 4 Oct 2006 17:17:09 +0900
- Subject: RE: shopt igncr not working
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@cygwin.com
) [mailto:cygwin-owner@cygwin.com] On Behalf Of Frank Illenseer
) Sent: Wednesday, October 04, 2006 3:49 PM
) To: cygwin@cygwin.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/