1
0
mirror of https://github.com/dylanaraps/pure-bash-bible.git synced 2025-09-02 20:02:49 +02:00

docs: update

This commit is contained in:
Dylan Araps
2019-09-19 21:10:41 +03:00
parent bb88623af1
commit 4b3b44a3f3
2 changed files with 2 additions and 2 deletions

View File

@@ -1105,7 +1105,7 @@ basename() {
tmp=${1%${1##*[!/]}}
tmp=${tmp##*/}
tmp=${tmp%"${2/$1}"}
tmp=${tmp%"${2/$tmp}"}
printf '%s\n' "${tmp:-/}"
}

View File

@@ -44,7 +44,7 @@ basename() {
tmp=${1%${1##*[!/]}}
tmp=${tmp##*/}
tmp=${tmp%"${2/$1}"}
tmp=${tmp%"${2/$tmp}"}
printf '%s\n' "${tmp:-/}"
}