Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

2 votes
2 answers
369 views

What is the right way to quote nested parameter expansions?

When dealing with with nested parameter expansions, which of these is the correct way to quote things? This one: var="${var#"${var%%[![:space:]]*}"}" Or this one: var="${var#${var%%[![:space:]]*}}"...
Harold Fischer's user avatar