[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inconsistent output for cd
From: |
Chet Ramey |
Subject: |
Re: inconsistent output for cd |
Date: |
Tue, 3 Apr 2007 09:51:12 -0400 |
> On Tue, 3 Apr 2007, Chet Ramey wrote:
>
> > > [...] and there appear to
> > > be no options at all to turn this superfluous output off.
> >
> > This is, as Eric Blake noted, required POSIX behavior. As to the manual:
>
> It is an interesting position for POSIX to take, given that in general
> Unix is silent on success.
It's the logical thing to do, considering the potential ambiguity that
exists when you use a directory selected from CDPATH. The illogical thing
is that POSIX requires the output even when the shell is not interactive.
> Does POSIX forbid an option "to turn this superfluous output off", as
> Tony Balinski put it?
Redirect stdout to /dev/null. That's the conventional way to rid yourself
of superfluous output.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong.
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/