help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kitty error w bash -bash: declare: -A: invalid option


From: write2mark1
Subject: Re: kitty error w bash -bash: declare: -A: invalid option
Date: Wed, 23 Feb 2022 12:59:23 -0800

no still same issue

    1 : #!/usr/bin/env bash

On Wed, Feb 23, 2022 at 12:52 PM Dennis Williamson <
dennistwilliamson@gmail.com> wrote:

>
>
> On Tue, Feb 22, 2022 at 8:01 PM <write2mark1@gmail.com> wrote:
>
>> for the past few weeks this error has been showing up everytime i open
>> kitty ; do you see such errors if so is there a bash fix for this as bash
>> seems to be throwing said error thanks
>>
>>
>>
>> > -bash: declare: -A: invalid option
>> > declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
>> > -bash: PROMPT_COMMAND: line 0: syntax error near unexpected token `;'
>> > -bash: PROMPT_COMMAND: line 0: `find_git_branch; find_git_dirty; ;
>> > _ksi_prompt_command'
>> >
>>
> Do you get this same error if you open another terminal emulator (e.g.
> Terminal.app on MacOS)? If so, the problem is in your startup script (e.g.
> ~/.bashrc) or a script that it calls which may have /bin/bash hard coded in
> its shebang rather than being a problem in kitty.
>
> In any case, the wrong, old version of Bash is being used. You need to
> make sure that your updated Bash (or a symlink to it) is in a directory
> that appears earlier in your PATH than /bin (where MacOS has an old version
> of Bash that can't be easily directly replaced).
>
>
> --
> Visit serverfault.com to get your system administration questions
> answered.
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]