When set a directory as persistent,
export should be employed and add it to ~/.bashrc
PATH="$PATH":/usr/local/mysql/bin export PATH
Does this mean that my current working shell is a subshell created from a parent-shell in script ~/.bashrc
$ var=3; export var; bash $ echo $var 3
The parent shell export the variable to subshell.
~/.bashrc work this way?