delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Matthias Meyer <matthias DOT meyer AT gmx DOT li> |
Subject: | Re: read file with windows filenames |
Date: | Thu, 29 Jan 2009 23:19:25 +0100 |
Lines: | 23 |
Message-ID: | <glta1g$q7j$1@ger.gmane.org> |
References: | <glsjq7$6fv$1 AT ger DOT gmane DOT org> <Pine DOT NEB DOT 4 DOT 64 DOT 0901291011590 DOT 24062 AT panix1 DOT panix DOT com> <glsohj$pdg$1 AT ger DOT gmane DOT org> <f60fe000901290926g48db7d4fs1b5aa97321a454c5 AT mail DOT gmail DOT com> |
Mime-Version: | 1.0 |
User-Agent: | KNode/0.10.9 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Mark J. Reed wrote: > For what it's worth, I've had intermittent problems with bash and > while read loops where the loop aborts after one iteration whenever > there's nontrivial code in the loop body, on multiple platforms, not > just Cygwin. So this might not be a Cygwin issue. I've never been > ble to isolate the problem enough to file a bug report, unfortunately. Thanks to all. The problem was a problem of this windows program attrib. /dev/null will solve this problem. :-) #!/bin/sh while read -r cLine do echo $cLine attrib ${cLine%%:*} "${cLine#*:}" < /dev/null done < 2restore4 br Matthias -- Don't Panic -- 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 |