|
From: | nadim khemir |
Subject: | Re: built in bash commands that change directory circumvent user defined cd |
Date: | Sun, 20 Nov 2016 19:20:32 +0100 |
On 11/20/16 4:24 AM, nadim khemir wrote:
> Bash Version: 4.3
> Patch Level: 46
> Release Status: release
>
> Description:
> autocd, and other, directly change the current directory, if the user
> defines an
> own 'cd' command, to handle multiple sessions for example, that command is not
> run.
>
> Repeat-By:
> set a different HISFILE in each directory via an own 'cd'
> set autocd
> name-of-directory, return
> HISFILE is not changed as custom 'cd' is not called
This was changed in bash-4.4. Bash will call a function named `cd' if one
exists before calling the `cd' builtin in this case.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |