bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: built in bash commands that change directory circumvent user defined


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

Will it also call the cd alias?

I have 4.4 compiled on my box I could test but I trust you can aswer me without me testing :)

Cheers, Nadim.

On Sun, Nov 20, 2016 at 7:05 PM, Chet Ramey <address@hidden> wrote:
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    address@hidden    http://cnswww.cns.cwru.edu/~chet/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]