What is the difference between executing a Bash script vs sourcing it?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=Pf9hpZZOUyQ



Duration: 6:29
3 views
0


What is the difference between executing a Bash script vs sourcing it?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(superuser.com/users/1493/scottie-t)Scottie T |
(superuser.com/users/39401/lesmana)Lesmana |
(superuser.com/users/20523/alok)Alok |
(superuser.com/users/10009/john-weldon)John Weldon |
(superuser.com/users/119728/abs)abs |
(superuser.com/users/5335/arkaitz-jimenez)Arkaitz Jimenez |
A special thanks goes out to the (https://superuser.com/questions/176783/what-is-the-difference-between-executing-a-bash-script-vs-sourcing-it)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

linux script bash







Tags:
linux
script
bash