I am trying to pass result of which env to nano by this command nano < which env, but it seems, that I didn't understand the whole concept.
When I execute this I assume that: which env STDOUT will go to the nano STDIN. So this will equal to nano /some/path. But, apparently, I am wrong.
Also I tried which env | nano with same purpose, but output was:
Received SIGHUP or SIGTERM
Can somebody clarify this?