bug-bash
[Top][All Lists]
Advanced

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

Re: how to silence shopt -s autocd verbose?


From: Chet Ramey
Subject: Re: how to silence shopt -s autocd verbose?
Date: Sun, 28 Nov 2010 09:43:50 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2

On 11/27/10 4:12 PM, some guy wrote:
> 
> shopt -q doesn't silence shopt -s autocd (intuitively, after reading it's 
> description, i thought this was it's purpose, but is not.)

That's a creative interpretation of the man page.

> shopt -s autocd
> /home/meow/cats
> # /home/meow/cats
> 
> (notice how it repeats itself after I cd the autocd way, simply by typing the 
> path? This is redundant information on my screen, 50% of lines at best is 
> polution). How can I silence that extra repetition?

There is currently no way to prevent bash from displaying
"cd dirname" when you have autocd set and use `dirname' as
a command name.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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