0

What does the following line:

OUTPUT=${OUTPUT:-/tmp}

does? What's the value of OUTPUT variable?

1 Answer 1

2

This is a form of parameter expansion used for setting a default value. ${OUTPUT:-/tmp} evaluates to the value of $OUTPUT if it is set and non-empty, but to /tmp otherwise.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .