LINUX - source

touch test.sh

#!/bin/bash
WQW=nice

touch exec.sh

#!/bin/bash
source test.sh
echo $WQW

结果:nice

posted @ 2019-06-05 21:01  chiwin  阅读(129)  评论(0)    收藏  举报