[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting IFS='*' causes bash to freeze on tab completion
From: |
Chet Ramey |
Subject: |
Re: Setting IFS='*' causes bash to freeze on tab completion |
Date: |
Sat, 2 Jul 2016 10:37:54 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
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 chet@case.edu http://cnswww.cns.cwru.edu/~chet/