delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.3 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 18:20:49 +0100 |
Lines: | 62 |
Message-ID: | <glsohj$pdg$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> |
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 |
--nextPart1236451.VW2WyNAmp6 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Tim McDaniel wrote: > Given that the debug output has "attrib +S" but the code at top has > "attrib +H", and that the debug output has "test 0 -gt 0" that the > code doesn't have just before the loop exit, it is probably necessary > for you to publish the actual code that's failing, even if it has > details that you're "100% certain" are irrelevant and unimportant. > Sorry ! The sourcecode (/etc/setAttribute): #!/bin/sh while read -r cLine do echo $cLine attrib ${cLine%%:*} "${cLine#*:}" done < 2restore4 The output: $ sh -x /etc/setAttribute + read -r cLine + echo '+S:C:\Dokumente' und 'Einstellungen\Administrator\Anwendungsdaten\Microsoft\Credentials\S-1-5-21-1606980848-1532298954-1801674531-500' +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\Credentials\S-1-5-21-1606980848-1532298954-1801674531-500 + attrib +S 'C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\Credentials\S-1-5-21-1606980848-1532298954-1801674531-500' + read -r cLine + exit attached you will find the file (2restore4) which I want read. br Matthias -- Don't Panic --nextPart1236451.VW2WyNAmp6 Content-Type: text/plain; name="2restore4" Content-Transfer-Encoding: 8Bit Content-Disposition: attachment; filename="2restore4" +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\Credentials\S-1-5-21-1606980848-1532298954-1801674531-500 +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\CryptnetUrlCache\Content\3C83474D61E624A4F9844DF935AFE217 +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\CryptnetUrlCache\Content\E04822AD18D472EA5B582E6E6F8C6B9A +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\CryptnetUrlCache\MetaData\3C83474D61E624A4F9844DF935AFE217 +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\CryptnetUrlCache\MetaData\E04822AD18D472EA5B582E6E6F8C6B9A +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\CryptnetUrlCache\Content +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\CryptnetUrlCache\MetaData +S +H:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\Internet Explorer\Quick Launch\desktop.ini +S +H:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\Internet Explorer\Desktop.htt :C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\Internet Explorer\Quick Launch +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\SystemCertificates\My\Certificates +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\SystemCertificates\My\CRLs +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\SystemCertificates\My\CTLs +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\SystemCertificates\My +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\Credentials +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\CryptnetUrlCache +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft\SystemCertificates +S:C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\Microsoft --nextPart1236451.VW2WyNAmp6 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/ --nextPart1236451.VW2WyNAmp6--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |