This is awkward...

It appears that your browser is an old version (or maybe is set to compatability mode?).

This site is unlikely to display properly in a browser with legacy behaviour.

Old browsers are a security risk for the user and can be a source of disproportionate effort for those producing internet content.

So please upgrade and then we'll be able to welcome you here with open arms.

Thanks for your understanding, looking forward to catching up with you again soon.

The Kolossi Courier

The Kolossi Courier

A collection of missives on various topics

Home Search About

Bash parameter expansion

Paul Sweeney · 17th May 2022

quicktips   bash   linux   parameter   variable   expansion   processing

To get details of how to handle parameter/variable expansion in bash, using hard-to-google code like ${a:-default} and ${a:?"required"}…

See the bash manual about Shell Parameter Expansion

Thanks

I found the docs via this stackoverflow response

Share: Twitter Facebook