bug-bash
[Top][All Lists]
Advanced

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

built in bash commands that change directory circumvent user defined cd


From: nadim khemir
Subject: built in bash commands that change directory circumvent user defined cd
Date: Sun, 20 Nov 2016 10:24:47 +0100

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I../. -I.././include -I.././lib  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall
uname output: Linux nadim-GS40-6QE-Phantom 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

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

Fix:
only run external 'cd' if it exists

reply via email to

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