Be careful! ./
and source
are not quite the same.
./script
runs the script as an executable file, launching a new shell to run itsource script
reads and executes commands from filename in the current shell environmentNote: ./script
is not . script
, but . script
== source script
原文:https://www.cnblogs.com/relax1949/p/9229248.html