Comment Comment by rgrau You can also nest those, so this way you can get a value from an argument, or an env var, and if none is set, error. echo "${1:-${env_var:?I need a value for that!}}" parent rgrau 3 years ago