Source Shell Script vs Executing Shell Script - The Real Difference

preview_player
Показать описание
Source Shell Script vs Executing Shell Script - The Real Difference
What is the Real Difference Between Sourcing a Shell Script and Running a Shell script?

In this video we go over the real difference between sourcing and running a shell script in BASH and how exporting environment variables from one script can give you access to them in another.


Рекомендации по теме
Комментарии
Автор

easily the slickest explanation of this topic on youtube. also, great channel content in general - deserves more subs

sgtJA
Автор

You just solved the year long mystery for me

Suhaspro
Автор

Great explainer but could slow down as a lot of variables being referenced quickly

janswee
Автор

Thanks! can you compare this to "exec -l bash" (or zsh)

fredrik.larsen
Автор

2:30 Child and sub shells are two different things.

brainstormsurge
Автор

i did not understand this! is thsi part of other videos i dont understand parent and child. you have 35 intros is this part of some playlist? i need more information.

charlesklein
Автор

If i try "C="this is C"", I get:

C: command not found

fosheimdet
join shbcf.ru