Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
2
Newest
 Teacher
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Dec
2
comment Extensible way to create bash program
Also, in shell scripts, all variables are global by default. If you source a script instead of executing it, it gets access to all variables defined in the parent script (you'll have to make them independent enough to not cause conflicts, a good pattern is to unset all variables set by an "extension" script before it is done). You can probably use that to come up with a good solution.
Dec
2
comment Extensible way to create bash program
I'd add to the idea: to easily "enable" and "disable" any of the extensions, make the script run (or source, as needed) only those with execute permission.
Aug
29
awarded  Teacher
Aug
29
answered FTP file compare
Aug
29
awarded  Autobiographer