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 shellenvironment
Note: ./script
is not . script
, but . script
== source script
help
doesn‘t work everywhere (atleast in zsh). type
does
help {builtin-name}
时间: 2024-10-11 13:14:04