Subroutines (Bash)
Naar navigatie springen
Naar zoeken springen
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Bash kent geen subroutines. Dus niet zoiets als gosub <label>
+ return
.
Alternatieven:
- Functies - Dit lijkt doorgaans te worden beschouwd als een volwaardige implementatie van subroutines. Zo had ik het nog niet bekeken.
- Aanroepen van andere script-bestanden
Zie ook
Bronnen
- https://www.unix.com/unix-for-dummies-questions-and-answers/418-shell-scripting-calling-subroutines.html - Geen subroutines maar wel functies
- https://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-8.html - Geen subroutines maar wel functies
- https://tldp.org/LDP/abs/html/functions.html - Idem