Open spaceone opened 2 years ago
Ah, parameter expansion is great. All but the first feature isn't exclusive to BASH though, as they're also available in Bourne Shell.
This is a very very useful contribution. Maybe we should move it to bash/expansion
or shell/expansion
?
Could do, since that would allow it to cover parameter expansion, brace expansion, tilde expansion, etc.
There should be way more examples for bash string usage:
${foo:2}
${foo%…}
${foo#…}
${foo##…}
etc.