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: Chet Ramey
Subject: Re: built in bash commands that change directory circumvent user defined cd
Date: Sun, 20 Nov 2016 13:05:40 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.0

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/



reply via email to

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