I often use the return/status value of a command in scripts. I'm curious why the finger command doesn't have a return value.
E.g.,
$ finger kevin
Login: klang Name: Kevin Kang
etc... Shell: /bin/bash
No mail.
No Plan.
$ echo $?
0
$ finger blabla
finger: blabla: no such user.
$ echo $?
0
Tested under Ubuntu and RH. I guess I could do some string processing and look for the "no such user" response, but that seems cumbersome.
The man page doesn't list any return values.
Yes yes, it has a return value of zero, but that's not helpful if that's the only value it has - I didn't realize I had to actually spell that out.