delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 23 Oct 2006 12:29:31 -0400 |
To: | cygwin AT cygwin DOT com |
Subject: | bug bash-3.1.17(9) : CR problems when using cat to generate cmd line arguments |
X-Sybari-Space: | 00000000 00000000 00000000 00000000 |
From: | "Howard Mak" <hmak AT vaultus DOT com> |
MIME-Version: | 1.0 |
Message-ID: | <op.thvurhc7lokn5a@slate> |
User-Agent: | Opera Mail/9.02 (Win32) |
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 |
------------P9ForHv3eZV3DiyWEL6cj6 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit I can't seem to get the latest version of bash to work with the command PROGRAM `cat file_containing_arguments.txt` when the file is created on a textmode mount. Seems like carriage returns are not processed correctly. I've attached a test script illustrating the problem. Comments: - The problem does not seem to appear in older version of bash (ver 3.1.17(6)) - I tried using different settings for the shell option igncr, but it didn't seem to help Thanks in advance for any help. - Howard ------------P9ForHv3eZV3DiyWEL6cj6 Content-Disposition: attachment; filename=cr_test.sh Content-Type: application/octet-stream; name=cr_test.sh Content-Transfer-Encoding: Base64 IyEvdXNyL2Jpbi9iYXNoDQojDQojIEZvbGxvd2luZyAyIHRlc3RzIHNob3Vs ZCBib3RoIHBhc3MuDQojIEluc3RlYWQsIDFzdCB0ZXN0IGZhaWxzIGluIG5l d2VyIHZlcnNpb24gb2YgYmFzaCwgYnV0IG5vdCBvbiBvbGRlciB2ZXJzaW9u Lg0KDQpzaG9wdCAtcyBpZ25jcg0KDQ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NCiMgMDAwMDAxMQ0KDQpub3RlcGFkIGBjYXQgYmFyLnR4dGANCg0KIyBP cGVuIGZhaWxzIGJlY2F1c2UgYGNhdGAgb3V0cHV0IHJldHVybnMgQ1I/DQoN CiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjDQojIFRlc3Qg Mg0KIyBQYXNzZXMgaW4gYmFzaCAzLjEuMTcoNiktcmVsZWFzZQ0KIyBQYXNz ZXMgaW4gYmFzaCAzLjEuMTcoOSktcmVsZWFzZQ0KDQpkb3MydW5peCAtVSBi YXIudHh0DQoNCm9kIC1jIGJhci50eHQNCg0KIyBSZXN1bHQ6DQojIDAwMDAw MDAgICBiICAgYSAgIHIgICAuICAgdCAgIHggICB0ICBcbg0KIyAwMDAwMDEw DQoNCm5vdGVwYWQgYGNhdCBiYXIudHh0YA0K ------------P9ForHv3eZV3DiyWEL6cj6 Content-Type: text/plain; charset=us-ascii -- 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/ ------------P9ForHv3eZV3DiyWEL6cj6--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |