diff --git a/sh.md b/sh.md index c723dd685..13fca9aa0 100644 --- a/sh.md +++ b/sh.md @@ -158,8 +158,9 @@ DIR=${SRC%$BASE} #=> "/path/to" (dirpath) | --- | --- | | `${FOO/from/to}` | Replace first match | | `${FOO//from/to}` | Replace all | -| `${FOO/#from/to}` | Replace prefix | +| --- | --- | | `${FOO/%from/to}` | Replace suffix | +| `${FOO/#from/to}` | Replace prefix | ### Substrings