Command Substitution: Can you return data instead of exit codes in Bash? | #3 Practical Bash

Опубликовано: 20 Октябрь 2024
на канале: kubucation
11,014
302

It seems bash only allows us to return an exit code from a function and not data like in other programming languages? So what do we instead? Can command substitution come to the rescue? In this video you'll learn how to safely pass data from one function in your script to another