[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kitty error w bash -bash: declare: -A: invalid option
From: |
Dennis Williamson |
Subject: |
Re: kitty error w bash -bash: declare: -A: invalid option |
Date: |
Wed, 23 Feb 2022 14:52:46 -0600 |
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.
- kitty error w bash -bash: declare: -A: invalid option, (continued)
- Re: kitty error w bash -bash: declare: -A: invalid option, Chet Ramey, 2022/02/23
- Re: kitty error w bash -bash: declare: -A: invalid option, write2mark1, 2022/02/23
- Re: kitty error w bash -bash: declare: -A: invalid option, Alex fxmbsw7 Ratchev, 2022/02/23
- Re: kitty error w bash -bash: declare: -A: invalid option, write2mark1, 2022/02/23
- Re: kitty error w bash -bash: declare: -A: invalid option, write2mark1, 2022/02/23
- Re: kitty error w bash -bash: declare: -A: invalid option, Alex fxmbsw7 Ratchev, 2022/02/24
- Re: kitty error w bash -bash: declare: -A: invalid option,
Dennis Williamson <=
- Re: kitty error w bash -bash: declare: -A: invalid option, write2mark1, 2022/02/23
- Re: kitty error w bash -bash: declare: -A: invalid option, Koichi Murase, 2022/02/24
- Re: kitty error w bash -bash: declare: -A: invalid option, Jeffrey Walton, 2022/02/23
- Re: kitty error w bash -bash: declare: -A: invalid option, Dennis Williamson, 2022/02/23
Re: Re: bash IDE or text editor?, Thomas Paulsen, 2022/02/21
Re: Re: bash IDE or text editor?, Thomas Paulsen, 2022/02/21