docs: update

This commit is contained in:
Dylan Araps
2019-09-19 20:07:51 +03:00
parent 9d00d2413e
commit 48b4fd7c80

View File

@@ -1100,7 +1100,7 @@ Alternative to the `basename` command.
```sh
basename() {
# Usage: basename "path"
# Usage: basename "path" ["suffix"]
dir=${1%${1##*[!/]}}
dir=${dir##*/}
dir=${dir%"$2"}