不同执行方式对$0的影响

不同执行方式对$0的影响

Content #

# test.sh
echo $$
echo $0

第一种执行方式:

bash test.sh

15997 test.sh 第二种执行方式:

. test.sh

14642 bash

From #