Other thing: #blah and %blah will take off the shortest match, while ##blah and %%blah will remove the longest. Also, all of these just give the unchanged value if there's no match.
This can be useful for things like ${foo##*/}, or for generalizing those pairs to more things.
no subject
This can be useful for things like ${foo##*/}, or for generalizing those pairs to more things.