by chrismorgan · 13y ago · 0 comments
`> /dev/null 2>&1` will drop both stdout and stderr.
For myself, with `which` I would just use `> /dev/null`, as `which` writes to stdout and not stderr: if anything comes through stderr, you probably want to know about it.
PS. I think "which" will never produce anything on stderr