docs: update
This commit is contained in:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user