Expand description
Saying that a long walk is still walking.
--all fetches pages until there are none left, and twenty pages of silence
is indistinguishable from a hang. Three rules keep the cure from being worse
than the disease:
- Always stderr. stdout is a data channel; a progress line in the middle of a result set would corrupt whatever is parsing it.
- Only when stderr is a terminal, not when stdout is.
find --all > outrun by a person has a piped stdout and a watching human — that is exactly the case progress is for. A command whose stderr is captured has no watcher, so it gets nothing. - Nothing is left behind. The bar clears itself; the tally on stdout is the record of what happened.
Structs§
- Walk
- A progress indicator, or nothing at all.