I wrote some code in .bashrc, that is working as expected.Here is the code,if [[ -v X_CHROOT ]]; then   PATH=/home/user/chroot_local/bin:$PATHfiExpectation is that PATH should be appended when I run the chroot command. And is appended as expected.So, After logging on machine, before chroot, it is,> echo $PATH/usr/local/bin/:/usr/local/sbin:......after chroot, it is,> echo $PATH/home/user/chroot_local/bin:/usr/local/bin/:/usr/local/sbin:......My question is,Amidst logging, .bashrc already executed.On chroot command does .bashrc content again execute?
How chroot works with .bashrc?
bash;chroot