docs: update

This commit is contained in:
Dylan Araps
2019-09-19 20:13:44 +03:00
parent 48b4fd7c80
commit 3590d9b03a

View File

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