What is the difference between these two commands which are used to run shell script?

前端 未结 4 1698
误落风尘
误落风尘 2021-01-25 04:16

Here I have one script which exporting some necessary path in Linux. After running this script I have to run some other scripts.

I have two scripts

1 imp         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-25 04:30

    ./import.sh executes the shell script in a new sub shell shell.

    . ./import.sh executes the shell script in the current shell.
    The extra . denotes the current shell.

提交回复
热议问题