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 Subject: Re: read file with windows filenames Date: Thu, 29 Jan 2009 23:19:25 +0100 Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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/