the parser doesn't support 'pattern' constructs in the command you tried.
Author: realyukiiCreated Aug 26, 2023Updated Aug 26, 2023
while entering:
case "${BASH_SOURCE:-$0}" in
*/*) dir=${1%/*}; [ -z $dir ] && echo "/" || echo $dir ;;
*) echo "." ;;
esacit outputs: the parser doesn't support 'pattern' constructs in the command you tried.
So, as the output says, I report it.
thank you
Source: idank/explainshell