docs: update

This commit is contained in:
Dylan Araps 2019-09-20 12:18:39 +03:00
parent 4202b0dae9
commit 49efee8559
2 changed files with 2 additions and 2 deletions

View File

@ -1103,7 +1103,7 @@ basename() {
# Usage: basename "path" ["suffix"]
local tmp
tmp=${1%${1##*[!/]}}
tmp=${1%"${1##*[!/]}"}
tmp=${tmp##*/}
tmp=${tmp%"${2/"$tmp"}"}

View File

@ -42,7 +42,7 @@ basename() {
# Usage: basename "path" ["suffix"]
local tmp
tmp=${1%${1##*[!/]}}
tmp=${1%"${1##*[!/]}"}
tmp=${tmp##*/}
tmp=${tmp%"${2/"$tmp"}"}