|
| From: | Linda Walsh |
| Subject: | Re: flag for quiet CDPATH |
| Date: | Tue, 21 Jan 2014 10:39:30 -0800 |
| User-agent: | Thunderbird |
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...)
| [Prev in Thread] | Current Thread | [Next in Thread] |