scsh-users
[Top] [All Lists]

Re: md5-digest-for-FILE

To: Marco Maggesi <maggesi@math.unifi.it>
Subject: Re: md5-digest-for-FILE
From: Eric Knauel <eric@knauel.org>
Date: Sun, 19 Nov 2006 17:23:58 +0100
Cc: scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
On Sun 19 Nov 2006 17:00, Marco Maggesi <maggesi@math.unifi.it> writes:

> the md5 routine raises an exception on empty streams.  More precisely:
>
>   $ touch emptyfile
>   $ scsh
>   Welcome to scsh 0.6.6 (King Conan)
>   Type ,? for help.
>   > (call-with-input-file "emptyfile" md5-digest-for-port)
>
>   Error: exception
>          #f
>          (< '#{End-of-file} 1024)
>   1> 
>
> Is this the correct behavior or a bug?  In the first case, can you 
> explain to me more on the md5 api?
>
> In the second case, you may find useful to know that I use scsh 0.6.6 
> on an intel macbook pro (tiger) compiled with macports.

This is a bug.  However, this bug has been fixed in the latest release
So, updating to 0.6.7 solves the problems.

-Eric
-- 
"Excuse me --- Di Du Du Duuuuh Di Dii --- Huh Weeeheeee" (Albert King)

Attachment: pgpPXF96jdlsK.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>