[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #27983] Windows text mode mis-interpreted
From: |
Eric Blake |
Subject: |
[bug #27983] Windows text mode mis-interpreted |
Date: |
Mon, 05 Apr 2010 15:14:52 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.5.9-1.fc12 Firefox/3.5.9 |
Follow-up Comment #4, bug #27983 (project findutils):
In your example, $tf1 is created in text mode, so it contains file names
listed with carriage returns. Then you use cat, which preserves binary mode,
through a pipe which also preserves binary mode. But this is an example of a
useless use of cat. You could have instead used:
xargs -i echo -n "=={}==" <$tf1 >$tf2
which would have opened tf1 in text mode (per the mount point), and avoided
the wasted cat process in the first place. If you insist on using cat, then
you should also be able to use d2u:
cat "$tf1" | d2u | xargs -i echo -n "=={}==" >$tf2
I still see no reason for findutils to work around this issue, especially
given the fact that cygwin developers highly recommend binary mounts rather
than text mounts for the very reason that text mounts are non-POSIX and
receive less testing.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27983>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #27983] Windows text mode mis-interpreted, Eric Blake, 2010/04/05
- [bug #27983] Windows text mode mis-interpreted, Ilguiz Latypov, 2010/04/05
- [bug #27983] Windows text mode mis-interpreted,
Eric Blake <=
- [bug #27983] Windows text mode mis-interpreted, Ilguiz Latypov, 2010/04/08
- [bug #27983] Windows text mode mis-interpreted, Eric Blake, 2010/04/09
- [bug #27983] Windows text mode mis-interpreted, Ilguiz Latypov, 2010/04/09
- [bug #27983] Windows text mode mis-interpreted, Eric Blake, 2010/04/12
- [bug #27983] Windows text mode mis-interpreted, Ilguiz Latypov, 2010/04/12
- [bug #27983] Windows text mode mis-interpreted, Ilguiz Latypov, 2010/04/12
- [bug #27983] Windows text mode mis-interpreted, Eric Blake, 2010/04/12