Hi Chris,
On Thu, 2 Jul 2020 at 13:11, Chris Green cl@isbd.net wrote:
I want to extend the 'cd' command slightly so that I can execute some specific actions when entering (and leaving) a particular directory hierarchy.
Would there be some sort of auditing / file monitoring framework available instead?
So I need to create a bash function called 'cd' to do this, but I still need to call the underlying bash built-in cd. Is there any way of doing this?
Yes there is.
https://unix.stackexchange.com/questions/132623/order-of-executables-started...
See the answer about using the backslash. This one was new to me.
Thanks, Srdjan