How to source files on the Linux command line

Поділитися
Вставка

КОМЕНТАРІ • 1

  • @LaMirah
    @LaMirah 6 місяців тому +1

    One difference between sourcing and just running a script is that running the script spawns a child process, which dies when the script ends, taking with it all of your changes of directory and non-exported variable definitions and shell functions, while sourcing keeps them.