We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This is example has four double quotes. To determine whether it means OPEN OPEN CLOSE CLOSE or OPEN CLOSE OPEN CLOSE requires a full shell parser.
OPEN OPEN CLOSE CLOSE
OPEN CLOSE OPEN CLOSE
$ echo "foo ${myvar:-"$(f() { echo func-defined-inside-quotes-and-inside-arg; }; f)"} bar" foo func-defined-inside-quotes-and-inside-arg bar $ myvar=x $ echo "foo ${myvar:-"$(f() { echo func-defined-inside-quotes-and-inside-arg; }; f)"} bar" foo x bar