On 7/2/16 3:16 AM, Ibrahim M. Ghazal wrote:
> Thanks for the pointer. I reported it there (
> https://github.com/scop/bash-completion/issues/52 ).
>
> After further investigation, the problem seems to be that when IFS is
> set to '*', case *) doesn't get executed. Is this the intended
> behavior?
>
> For example:
>
> IFS='*'; case "foo" in *) echo "got here";; esac
>
> doesn't print "got here".
Yep, that's a bug. Thanks for the report and reproducer. The problem is
that the `*' ends up being matched literally instead of as a matching
character. This will be fixed in the next release of bash.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/