public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: Who "fixed" md5sum??
Date: Sun, 11 Nov 2001 08:26:00 -0000	[thread overview]
Message-ID: <20011117233823.GA7458@redhat.com> (raw)
In-Reply-To: <E165ELn-000204-00@swan.prod.itd.earthlink.net>

On Sat, Nov 17, 2001 at 03:53:53PM -0700, Mark Paulus wrote:
>I have a question about md5sum.  It seems like in one of the not
>too distant releases of textutils, the md5sum program altered it's
>behaviour.  Before the change, it would act like the debian/linux
>variety, in that if you would do an 
>md5sum < <somefile>
>you would get a result, and that would be all, e.g.:
>
>This is the result from my debian box.....
>
>mgpaulus@testbox1:/smbapps/cygwin.pkg$ md5sum < setup.exe
>d91a97dcd67b7cb9c6aaa408cf431b01
>
>Here's the same result, except from my cygwin environment:
>$ md5sum < setup.exe
>d91a97dcd67b7cb9c6aaa408cf431b01 *-
>
>My problem is the little '*-' at the end...  I have several unix ported scripts 
>that run md5sum, and expect only the significant md5sum digits, and the
>trailing stuff is causing all the scripts to break.  Would it be possible
>to get either 
>1) a rational for adding the trailing stuff, and making it act
>differently than it's un*x cousin; 
>
>and/or 
>
>2) an ability to turn that "feature" off,
>if everyone else absolutely requires it??

md5sum on my linux box returns a '-' in the second column if the md5sum
is being performed on standard input.  I assume that you are using an
older version on your linux system if yours doesn't do that.

Inspecting the source, I see that the '*' means that the file is binary.

As to why these changes were introduced, you'd have to ask the authors
of textutils.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

      parent reply	other threads:[~2001-11-17 23:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-11  8:26 Mark Paulus
2001-11-11  8:26 ` Richard Hitt
2001-11-11  8:26 ` Christopher Faylor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011117233823.GA7458@redhat.com \
    --to=cgf@redhat.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).