1. bash的父进程,子进程
[[email protected]~]# my_var=123
[[email protected]~]# echo $my_var
123
[[email protected]~]# bash
[[email protected]~]#
[[email protected]~]# echo $my_var
[[email protected]~]# exit
exit
[[email protected]~]# echo $my_var
123
时间: 2024-10-24 09:25:52