Bash – ”Sourcing” script from another script

Diep Pham favadi at fastmail.fm
Mon Jan 5 02:50:36 UTC 2015


On Sun, Jan 04, 2015 at 11:09:10PM +0100, Johnny Rosenberg wrote:
> I'm pretty sure it will work, but is this a good practice?
> Is it better to keep everything in one file even if that file will be quite
> big?
> Or is it better to just run the script in another shell sending it a lot of
> parameters?

I prefer to keep everything in one file. When things get complicated,
you should use a proper programming language, though.




More information about the ubuntu-users mailing list