[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flag for quiet CDPATH

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

But the above doesn't work.  The echo happens on stdout...I.e.
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

[Prev in Thread] Current Thread [Next in Thread]