docs: update
This commit is contained in:
parent
48b4fd7c80
commit
3590d9b03a
|
@ -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"}
|
||||
|
|
Loading…
Reference in New Issue