答案1
.bashrc
默认情况下是有源的。
-bash-4.1$ echo 'echo I was read' >> ~/.bashrc
-bash-4.1$ script asdf
Script started, file is asdf
I was read
bash-4.1$ exit
Script done, file is asdf
.bashrc
默认情况下是有源的。
-bash-4.1$ echo 'echo I was read' >> ~/.bashrc
-bash-4.1$ script asdf
Script started, file is asdf
I was read
bash-4.1$ exit
Script done, file is asdf