2 ms·
You're watching the output of a command. In what world exactly, is the name 'watch' unclear or a poor choice?
by sofuture 16y ago
You're watching the output of a command. In what world exactly, is the name 'watch' unclear or a poor choice?
- thristian 16y agoI think the person you're responding to felt that Unix command should describe what you're telling the computer to do: "ls" makes the computer list files, "find" makes the computer find things, "echo" makes the computer echo what you give it, etc. "watch" does not make the computer watch anything (at least in its default mode of operation); it makes the computer run a command repeatedly and the user watches it. "repeat" or "refresh" might have been more consistent names.
- Someone 16y agoYes, that is what I was complaining about. An alternative, consistent with 'at', could be 'every': *every 2s ls* *echo "ls" | every 5m For readability, I would then drop the default for the time interval; the command without the time interval (every ls) reads awfully. And yes, that first way of specifying what to repeat is different from the way at does it. I am not sure I would want to follow 'at' in that respect.