@@ -512,8 +512,11 @@ Alternative to the `basename` command.
```sh
basename(){
# Usage: basename "path"
path=${1%/}
printf'%s\n'"${path##*/}"
dir=${1%${1##*[!/]}}
dir=${dir##*/}
dir=${dir%"$2"}
printf'%s\n'"${dir:-/}"
}
```
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.