Re: how to silence shopt -s autocd verbose?

2010-11-28 Thread Chet Ramey
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, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/



Re: how to silence shopt -s autocd verbose?

2010-11-28 Thread Clark J. Wang
On Sun, Nov 28, 2010 at 5:12 AM, 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.)
>
> `shopt -q' is usually used to check if a shopt option is turned on or off.
For example:

$ shopt -q autocd
$ echo $?

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?
>
> -some guy
>