[Aboriginal] aboriginal changes
Rob Landley
rob at landley.net
Wed Nov 18 07:22:41 PST 2015
On 11/17/2015 09:04 AM, Geoff Salmon wrote:
> On 15-11-17 09:55 AM, Rob Landley wrote:
>>> > sha1file()
>>> > {
>>> >- sha1sum "$@" | awk '{print $1}'
>>> >+ sha1sum /dev/null "$@" | tail -n +2 | awk '{print $1}'
>>> > }
>>> >
>>> >Except then you can't pipe input into sha1file. I don't see this being
>>> >done anywhere, but maybe it's something you want to support.
>
> I was wrong about not supporting piping into sha1file. You just have to
> be explicit about it and pass a "-" argument.
>
>> sha1sum /dev/null gives an sha1sum, probably doesn't hurt anything in
>> this case but it's a behavior change. Sounds like an existence test is
>> needed somewhere.
>
> sha1sum /dev/null does always return a hash, but the tail -n +2 ignores it.
You're right, that fixes it.
Merged and pushed.
Rob
More information about the Aboriginal
mailing list