Re: Bug#353911: md5sum --check checks only if _all_ are bad

2006-02-23 Thread Michael Stone
On Wed, Feb 22, 2006 at 10:11:35AM -0800, Paul Eggert wrote: I agree that the current behavior is confusing. I'd prefer it if any improperly formatted line caused a nonzero exit status. Is there some reason things are done the way that they are? Presumably to dump e.g., a set of md5's in a re

Re: Bug#353911: md5sum --check checks only if _all_ are bad

2006-02-23 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: ... > I agree that the current behavior is confusing. I'd prefer it if any > improperly formatted line caused a nonzero exit status. Is there some > reason things are done the way that they are? > > At the very least there should be an option to cause an err

Re: Bug#353911: md5sum --check checks only if _all_ are bad

2006-02-23 Thread Paul Eggert
Dan Jacobson <[EMAIL PROTECTED]> writes: > $ md5sum test/*|sed 1s/./Z/|>/dev/null md5sum -c --status -w -; echo $? > md5sum: standard input: 1: improperly formatted MD5 checksum line > 0 > $ md5sum test/*|sed 1s/./Z/|>/dev/null md5sum -c -; echo $? > 0 > $ md5sum test/*|sed s/./Z/|>/dev/null md5s

Re: rln, a potential new core util

2006-02-23 Thread Pádraig Brady
David Laurence Emerson wrote: ># rln by David Laurence Emerson <[EMAIL PROTECTED]> ># version 0.01 ># 2006-02-21 ># ># This bash script is insanely slow and would be well replaced by a c ># implementation. ># ># rln stands for "relative (sym)link". It helps create symlinks by ># intelligently fin