Lionel Cons wrote:
Yes, adding yet another option which can be implemented using POSIX
behaviour is IMHO code bloat. Just use alias cd='2>"/dev/null" cd '
(yes, POSIX mandates that re-directions can be prefixed and not only
postfixed).

---
But the above doesn't work.  The echo happens on stdout...I.e.
need:
alias cd=' cd >& /dev/null'

which does work.

(FWIW, I tried it just with '2' before i read your note --
I, too, am surprised it's not on stderr...)


Reply via email to