|
From: | Bruce Korb |
Subject: | Re: [PATCH] uudecode doesn't work on files with DOS line endings |
Date: | Fri, 28 Apr 2006 14:57:52 -0700 |
User-agent: | Mozilla Thunderbird 1.0.7 (X11/20050923) |
Paul Eggert wrote:
uuencode /bin/sh /bin/sh | sed 's/$/foobar/' | uudecode -o sh POSIX says that the input to uudecode is not in uuencode format, so uudecode shouldn't find anything. That is, the program should behave just as this one does: uuencode /bin/sh /bin/sh | sed 's/^/foobar/' | uudecode -o sh
The practical issue is what to do when these shar archives get emailed and saved using some MUA that thinks all lines should end with \r\n. We could try to get Microsoft to change its ways, but I'd rather just make it simple and ignore the \r. The aardvark would just say that spurious '\r' characters that are immediately followed by '\n' may (optionally) be ignored by the uudecode utility. Cheers - Bruce
[Prev in Thread] | Current Thread | [Next in Thread] |