hosh-shell / hosh

Human Oriented SHell
https://hosh-shell.github.io
MIT License
25 stars 0 forks source link

enumerate a benchmark #113

Open dfa1 opened 5 years ago

dfa1 commented 5 years ago

Problem

Enumerating a benchmark is not possible right now:

benchmark 5000 { rand | drop 10000 | take 10000 | count } | enumerate
1 10_000 

without any further output.

Solution TBD

Benefit Enumerating a benchmark is not very common but should be fixed anyway (most likely it is affecting other commands as well).

dfa1 commented 5 years ago

without a pipeline it works as expected:

hosh> benchmark 5 { echo a } | enumerate
1 a
2 a
3 a
4 a
5 a
6 5 PT0.000038943S PT0.000482544S PT0.000134565S