How do I call internal function in bash if I have defined with the same name?
Posted
by Kimvais
on Stack Overflow
See other posts from Stack Overflow
or by Kimvais
Published on 2010-04-23T10:33:05Z
Indexed on
2010/04/23
11:23 UTC
Read the original article
Hit count: 151
bash
I want to overload the functionality of cd
in bash so that I can do the following checks:
if the directory is not in DIRSTACK -> pushd dir
else cd dir
(or cd ~#
)
However now I get a recursive loop when trying to cd
The reason for this is that I am trying to work around the fact that bash does not support set dunique
© Stack Overflow or respective owner