It varies by shell, but basically the set command is used to define a variable for the current shell. The export command is used to define the variable as one that subshells (shells spawned from the original) should inherit.
linux shell set vs export
最新推荐文章于 2022-01-09 15:47:07 发布