undocumented watch reacts to sigwinch or terminal resize

Bug #1812943 reported by Evan Benn on 2019-01-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
procps (Ubuntu)
Undecided
Unassigned

Bug Description

Hello, I would normally PR straight to the source, but I could not work out where that is.

watch seems to react to terminal resizes (good). But this is not documented in the man page. This is an issue if the user actually wants that command to only run at the specified cadence. IE it is expensive or dangerous. A flag to disable would be nice, but really just documenting is enough.

Confirm with:

watch -n60 'echo $(( $(cat f) + 1 )) | sponge f; cat f'

and resize your window

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers