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  阅读(123)  评论(0编辑  收藏  举报