7 ms·
Oh please. 'man' is fundamentally different to 'grep' and if you can't see how you shouldn't be producing systems of any kind. For starters the user of 'man'
by seanhunter 2y ago
Oh please. 'man' is fundamentally different to 'grep' and if you can't see how you shouldn't be producing systems of any kind.
For starters the user of 'man' is an interactive unix user. Other than really unusual edge cases (eg processes which produce printed versions of the unix manual, and the test scripts of the OP in the stackexchange) there are no non-interactive or batch uses of man, it isn't used in pipelines or scripts etc.
Whereas grep is a staple of batch processes, scripts, cronjobs large and small as well as being a key tool for interactive use.
- cperciva 2y agoThe Tarsnap website has the man pages for tarsnap utilities, for easy googling; they're generated basically by `man | sed`. I would be very annoyed if the Tarsnap website was broken because someone decided to throw in an Easter egg and make the output occasionally inconsistent. If anyone reading this is ever considering putting in an Easter egg like this: Please check if stdout is a terminal! If your output is going to a terminal, it's probably safe to be silly. If your output is going anywhere else, you should absolutely not play games.
- deleted 2y ago[deleted]
- seanhunter 2y agoChecking that stdout is a terminal is a good idea indeed.
- mistercheph 2y agoAdmit it, you’re very annoyed even when Tarsnap does work, this is more of a question of character.