bmatzelle / gow

Unix command line utilities installer for Windows.
https://github.com/bmatzelle/gow/wiki
6.55k stars 363 forks source link

sha1sum not working as expected #255

Open adriendomoison opened 4 years ago

adriendomoison commented 4 years ago

Hello,

Just tried using GOW today because I needed sha1sum on windows and ended up finding that GOW sha1sum doesn't quite work as I expected.

Here is the result using sha1sum on Mac, Linux, Online generators & Cygwin

$ echo -n "hello" | sha1sum
aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d *-

And the result using sha1sum with GOW

echo -n "hello" | sha1sum
aa5916ae7fd159a18b1b72ea905c757207e26689 *-
adriendomoison commented 4 years ago

From doing more research, this might be considered as "normal" behavior.

https://stackoverflow.com/questions/48836583/git-hash-object-is-yielding-different-sha1-in-powershell-cmd-and-bash

Any input on how to go around this issue?