[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with redirection of output to files through shell scripts

From: Eric Blake
Subject: Re: Problems with redirection of output to files through shell scripts
Date: Tue, 11 Sep 2007 06:10:27 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070728 Thunderbird/ Mnenhy/

Hash: SHA1

According to Pratiksha Powar on 9/11/2007 3:44 AM:
> Bash Version: 3.0
> Patch Level: 16

Bash is now at 3.2 patchlevel 25.  You may want to consider upgrading.

> Following is the code (in a shell script)which redirects find command
> output to a file called "src". But this command generates a file called
> "src?" instead.

Sounds to me like your script has spurious carriage returns or other
invisible characters.  For the cygwin release of bash, I have added a
downstream patch to provide a shell option igncr, named after the stty
option, that makes bash ignore all carriage returns on input, when
enabled.  Is there any interest in having that option on all platforms,
rather than just Cygwin?  If so, I will try to clean up the patch and post
it here.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]