mirror of
https://github.com/dylanaraps/pure-bash-bible.git
synced 2025-09-01 03:21:56 +02:00
docs: update
This commit is contained in:
@@ -1105,7 +1105,7 @@ basename() {
|
||||
|
||||
tmp=${1%${1##*[!/]}}
|
||||
tmp=${tmp##*/}
|
||||
tmp=${tmp%"${2/$tmp}"}
|
||||
tmp=${tmp%"${2/"$tmp"}"}
|
||||
|
||||
printf '%s\n' "${tmp:-/}"
|
||||
}
|
||||
|
@@ -44,7 +44,7 @@ basename() {
|
||||
|
||||
tmp=${1%${1##*[!/]}}
|
||||
tmp=${tmp##*/}
|
||||
tmp=${tmp%"${2/$tmp}"}
|
||||
tmp=${tmp%"${2/"$tmp"}"}
|
||||
|
||||
printf '%s\n' "${tmp:-/}"
|
||||
}
|
||||
|
Reference in New Issue
Block a user