[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autocd doesn't invoke customized `cd` wrapper
From: |
Chet Ramey |
Subject: |
Re: autocd doesn't invoke customized `cd` wrapper |
Date: |
Mon, 4 Jan 2016 07:51:51 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 1/1/16 4:41 PM, transl8czech@gmail.com wrote:
> Bash Version: 4.3
> Patch Level: 11
> Release Status: release
>
> Description:
> If `cd` is a function or an alias in my environment, I think autocd ought
> to invoke
> that instead of the raw `command cd` (like it does now).
Invoking a function would be reasonable, since you don't have to mess with
special builtins and search order in Posix mode. Since alias expansion is
performed when the command is read, not when it is executed, it's the wrong
place to do that. I'll take a look at it for bash-4.4.
Chet
--
``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/