Hacker News new | ask | show | jobs
by endgame 4172 days ago
It's a bashism. Open up "man bash" and search for "Remove matching suffix pattern".
1 comments

which, regrettably, is not something you can do with `man` if you find `${0%/*}` in a script you're reading that someone else wrote.
No, but you can find it by searching for "%", because that's exactly what I did.