On Wed, Jul 17, 2013 at 02:53:41PM +0000, Mark W. Johnson wrote:
>       function _cd { command cd "$@"; }
>       alias cd=_cd
> 
> In my real _cd function it saves off the directories visited, but I didn't
> want to complicate the issue, so I replaced my useful _cd function to
> something useless but simpler to demonstrate the problem.

Was this your intent?

cd() {
  save or process "$1" somehow
  builtin cd "$1"
} 

You can just remove the alias entirely, if that is the case.  Then the
problem goes away.

Reply via email to