Results 1 to 8 of 8

Thread: Bash completion broken when completing with equal sign

  1. #1
    Join Date
    Mar 2012
    Beans
    16

    Bash completion broken when completing with equal sign

    Hi,

    Since a while my tab completion no longer works. At first i thought i was my own custom completion i created, but also when removing my own script it does no longer work as before.

    The problem is simple:

    Code:
    $ export A=/<tab>
    $ export /
    SO when i type the tab key after the equal sign, the equal sign gets removed and i only see the value (in this case what i have typed so far: the /"

    Any clues.

    tx.,

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Bash completion broken when completing with equal sign

    You need to escape the = with a \ as if it were, for example, a space.
    Code:
    $ export A\=/<tab>

  3. #3
    Join Date
    Mar 2012
    Beans
    16

    Re: Bash completion broken when completing with equal sign

    Hi,

    Thanks for your response. I have never had to do that. I gave it a try anyway, but the problem is still there.

    Code:
    $ export ABC=/[TAB]
    --becomes-->
    Code:
    $ export /
    Same with "escaping" the =
    Last edited by rparree; May 9th, 2014 at 07:54 AM.

  4. #4

    Re: Bash completion broken when completing with equal sign

    not going to work.
    Windows assumes the user is an idiot.
    Linux demands proof.

  5. #5
    Join Date
    Mar 2012
    Beans
    16

    Re: Bash completion broken when completing with equal sign

    HI

    What do you mean it is not going to work. It has worked for years, just suddenly it stopped. Note that under bash --norc it works.

    tx.,

  6. #6
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Bash completion broken when completing with equal sign

    Your 'export ABC=/' example works for me as well (12.04, bash version 4.2.25(1)-release) - specifically it offers the contents of / as completions

    Maybe you can narrow down the source of the issue by temporarily replacing your ~/.bashrc with the default one from /etc/skel, then doing the same for ~/.profile and so on up the rc file 'hierarchy'

  7. #7
    Join Date
    May 2014
    Beans
    10

    Re: Bash completion broken when completing with equal sign

    I agree with rparree . It would work.

  8. #8
    Join Date
    Mar 2012
    Beans
    16

    Re: Bash completion broken when completing with equal sign

    I found the problem. It was a completion script from Node's npm: http://stackoverflow.com/questions/2...10080#25010080

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •