Bash: What’s the default exit code of a script / function?
12 December 2025 (Updated 12 December 2025)
If you don’t explicitly specify an exit code, your script or functions’s exit code will be the exit code of the last executed command.
Tagged:
Bash