ekkis opened this issue 8 years ago · 1 comments
$ echo test |md5 d8e8fca2dc0f896fd7cb4cb0031ba249 $ node -e "md5=require('md5'); console.log(md5('test'));" 098f6bcd4621d373cade4e832627b4f6
how can that be?
ok, I'm being stupid. echo outputs a carriage return, so printf "test" |md5 works as expected
printf "test" |md5