On Thu, 29 Jan 2009, Matthias Meyer wrote:
while IFS= read -r cLine
do
echo "$cLine"
attrib +H "$cLine"
done < restoreFiles.tmp
rm -f restoreFiles.tmp
will stop the while loop after the first call of attrib:
+ echo 'C:\Dokumente und
Einstellungen\Administrator\Anwendungsdaten\Microsoft\Credentials\S-1-5-21-1606980848-1532298954-1801674531-500'
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'
+ IFS=
+ read -r cLine
+ test 0 -gt 0
+ rm -f restoreFiles.tmp
Did anyone know what happens there?
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.
--
Tim McDaniel, t...@panix.com
--
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/