Re: md5sum outputs '-' when using stdin

2019-08-26 Thread Stephane Chazelas
2019-08-25 21:03:33 +0100, Stephane Chazelas: [...] > FWIW, the ast-open implementation of "wc" doesn't output that > "-" and doesn't treat "-" as meaning stdin. If you want to > "md5sum -c" stdin there, you need to use "/dev/stdin" instead of > "-". [...] Sorry, I meant "the ast-open implementati

Re: md5sum outputs '-' when using stdin

2019-08-26 Thread Bernhard Voelker
On 8/26/19 10:44 AM, Erik Auerswald wrote: On Sun, Aug 25, 2019 at 09:03:33PM +0100, Stephane Chazelas wrote: [...] Maybe --quiet could be used to skip outputting file names. I don't think overloading --quiet this way is helpful. Changing *sum's output format should use a new option IMHO (if

Re: md5sum outputs '-' when using stdin

2019-08-26 Thread Erik Auerswald
Hi, On Sun, Aug 25, 2019 at 09:03:33PM +0100, Stephane Chazelas wrote: > [...] > Maybe --quiet could be used to skip outputting file names. I don't think overloading --quiet this way is helpful. Changing *sum's output format should use a new option IMHO (if one wants to add this functionality an

Re: md5sum outputs '-' when using stdin

2019-08-25 Thread Stephane Chazelas
2019-08-23 10:41:01 +0100, coreut...@fastmail.com: [...] > $ echo 'hello world' | md5sum > 6f5902ac237024bdd0c176cb93063dc4 - > > What's use is the '-'? > > Obviously it indicates the file content it taken from the > standard input, but is that of any actual use? [...] It is used by md5sum -c.