I cannot run the
strings command on the
strings binary (which is for me located at
$ strings $(which strings) strings
I also can't copy it and try it on the copy of it:
$ cp -L $(which strings) /tmp/ $ strings /tmp/strings strings
The only way I can get it is to capture the output in
$ strings <<< $(cat $(which strings)) ...
But there are other commands that this kind of self-referencing works with (e.g.,
cat $(which cat)). I looked it up and it works on some other machines [image pulled from here]. Perhaps it is a macOS thing? (I am currently running macOS 10.14).
I understand that this is a silly question with potentially no use case, but I am just curious...