Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's a bashism. Open up "man bash" and search for "Remove matching suffix pattern".


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: