On 27/01/2021 14.49, [email protected] wrote:
> That's why your .? glob doesn't match the .. pathname. Normally,
> GLOBIGNORE isn't set.
After unsetting GLOBIGNORE:
$ declare -p GLOBIGNORE
declare -x GLOBIGNORE=""
$ shopt -u extglob
$ echo @(?|.?)
-bash: syntax error near unexpected token `('
$ shopt -s extglob
$ echo @(?|.?)
. ..
At any rate, the following command may help you to track
> down where it's coming from.
>
> $ PS4='+$BASH_SOURCE:$LINENO: ' bash -ixlc '' |& less
It turned out this was erroneously set in a profile...
Thanks,
Peter