Re: md5sum sometimes prepends \
Jim Meyering <[email protected]> Sun, 04 May 2003 14:44:54 +0200
| Newsgroups | gmane.comp.gnu.textutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
gregory mott <[email protected]> wrote: > md5sum sometimes prepends \ > seems to correlate with filenames containing odd characters > is this a bug or a feature? > > example: > $ ls -l > total 727 > -rw-r--r-- 1 root root 737535 Jul 20 2001 bar bar ? bar bar > -rw-r--r-- 1 root g 4 May 3 13:12 foo foo ? foo foo > -rw-r--r-- 1 root g 216 May 3 14:28 ls > $ md5sum * > \276bbcdf668e50dd738da93ccc7f2cee bar bar \n bar bar > \d3b07384d113edec49eaa6238ad5ff00 foo foo \n foo foo > 8f906fa6281005fbe35892da9e3fb751 ls That's a feature. Each of those file names contains a NEWLINE (aka "\n") byte.