bash completion error
Phil Dobbin
phildobbin at gmail.com
Sun May 12 05:10:46 PDT 2013
On 12/05/2013 12:49, Rainer Müller wrote:
> On 2013-05-12 12:28, Phil Dobbin wrote:
>> I've installed bash & bash-completion from MacPorts & when adding the
>> required line to my bash_profile to enable the completion as advised, I get:
>>
>> 'bash: [: 05b: integer expression expected]'
>>
>> I've stared at it 'til I'm blue in the face but I can't see why it
>> expects an integer.
>>
>> By the way this is on an old 800MHz G4 PowerMac running 10.4.11 that I
>> bought yesterday for a fiver if that makes any difference at all.
>
> Are you using /opt/local/bin/bash? As stated in 'port notes
> bash-completion' you need at least bash 4.1. I don't know which version
> of bash shipped with 10.4.11 as /bin/bash.
>
> The bash_completion script tries to detect old bash versions, but maybe
> it's even too old for that check to work properly?
>
> Even on later versions of Mac OS X, your /bin/bash is too old as Apple
> left it at 3.2, the last version available under GPL-2 and later
> versions are GPL-3.
'bash --version' returns 4.2.42 & is indeed /opt/local/bin/bash.
Must be down to the age of the OS. I can't even get any lscolors. May
have to edit a Debian bashrc to see if I can fix that.
Cheers,
Phil...
--
currently (ab)using
CentOS 5.9 & 6.4, Debian Squeeze & Wheezy, Fedora Beefy, Spherical &
That Damn Cat, Lubuntu 12.10, OS X Snow Leopard, Ubuntu Precise, Quantal
& Raring
GnuGPG Key : http://phildobbin.org/publickey.asc
More information about the macports-users
mailing list