[Bash-completion-devel] Bug with regex for bash-completion hosts-file

Giordon Stark kratsg at gmail.com
Fri Feb 28 18:29:42 UTC 2014


It seems you move to support bash 4.1 instead (Macs use 3.2 because of GPL
3). It is a minor bug in both 1.3 and 2.1 in which you don't support BSD
sed (but you should).

G


On Fri, Feb 28, 2014 at 11:41 AM, Giordon Stark <kratsg at gmail.com> wrote:

> 2.1 also has a whole bunch of extra errors that don't crop up in 1.3:
>
> -bash: declare: -A: invalid option
> declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
> -bash: complete: -D: invalid option
> complete: usage: complete [-abcdefgjksuv] [-pr] [-o option] [-A action]
> [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F
> function] [-C command] [name ...]
>
>
> On Fri, Feb 28, 2014 at 11:40 AM, Giordon Stark <kratsg at gmail.com> wrote:
>
>> This is also broken in 2.1 -- if you run with export POSIXLY_CORRECT=1 --
>> you will see that the regexes using the tabs don't work at all.
>>
>> Giordon
>>
>>
>> On Fri, Feb 28, 2014 at 6:38 AM, Ville Skyttä <ville.skytta at iki.fi>wrote:
>>
>>> On Fri, Feb 28, 2014 at 9:11 AM, Giordon Stark <kratsg at gmail.com> wrote:
>>> > Hey all - it appears that the problem lies with BSD sed and Mac OSX's
>>> sed
>>> > doesn't support tabs in the same way as you're using them.
>>>
>>> s/you're/you were/ :)
>>>
>>> This problem and several similar ones have to my knowledge been fixed
>>> in current bash-completion versions. 2.1 is the latest release at the
>>> moment, 1.3 is already three years old and the 1.x branch almost
>>> certainly won't receive any more updates/fixes.
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20140228/f0f808f7/attachment.html>


More information about the Bash-completion-devel mailing list