[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flag for quiet CDPATH
From: |
Clark WANG |
Subject: |
Re: flag for quiet CDPATH |
Date: |
Tue, 21 Jan 2014 10:10:07 +0800 |
On Tue, Jan 21, 2014 at 8:16 AM, Elliott Forney <elliott.forney@gmail.com>wrote:
> I find it a little unpleasant that cd echoes the new working directory
> when CDPATH is used to locate the new directory (I already have the
> working directory in my prompt). I understand that this is behavior
> is mandated by POSIX but I wonder if we could have an option that
> disables this.
>
+1 and `cd -' has the similar problem.
>
> Maybe if the `cd' builtin had an option, say `-q', that would cause it
> to be quit if CDPATH is used. Then, I could simply
>
> alias cd='cd -q'
>
> and put a stop to this. I have attached a proposed patch, any thoughts?
>
> Thanks,
> -------
> Elliott Forney E-Mail: idfah@cs.colostate.edu
> Graduate Student Phone: 1.402.215.7440
> Computer Science Department Web:
> http://www.cs.colostate.edu/~idfah
> Colorado State University
>