Re: [arch-general] broken pipe

2019-12-18 Thread mar77i via arch-general
‐‐‐ Original Message ‐‐‐ On Wednesday, December 18, 2019 4:41 PM, Andy Pieters wrote: > On Wed, 18 Dec 2019 at 15:32, Pascal via arch-general > arch-general@archlinux.org wrote: > > > that's awesome, it works ! > > it was so simple with cat taking over and consuming the data until the en

Re: [arch-general] broken pipe

2019-12-18 Thread Andy Pieters
On Wed, 18 Dec 2019 at 15:32, Pascal via arch-general wrote: > > that's awesome, it works ! > it was so simple with cat taking over and consuming the data until the end ! > (I added a redirect to /dev/null to cat) > big thank you. I'm interested in the amount of effort you put into this. Isn't th

Re: [arch-general] broken pipe

2019-12-18 Thread Pascal via arch-general
that's awesome, it works ! it was so simple with cat taking over and consuming the data until the end ! (I added a redirect to /dev/null to cat) big thank you. Le mer. 18 déc. 2019 à 16:19, mar77i via arch-general < arch-general@archlinux.org> a écrit : > ‐‐‐ Original Message ‐‐‐ > On Wed

Re: [arch-general] broken pipe

2019-12-18 Thread mar77i via arch-general
‐‐‐ Original Message ‐‐‐ On Wednesday, December 18, 2019 3:20 PM, Pascal via arch-general wrote: > hello, > > it works perfectly because both tools used, md5sum and sha1sum, consume all > the data. > > on the other hand, the function returns wrong fingerprints if I insert a > tool like f

[arch-general] broken pipe

2019-12-18 Thread Pascal via arch-general
hello, to avoid having to read twice the entire large file, I use the tee tool in this way to calculate two checksums "simultaneously" : file_info(){ echo -n ${1:=/dev/stdin}$'\t' ( tee < "${1}" \ >( md5sum >&3 ) \ >( sha1sum >&3 ) \ >/dev/null