Bash-Completion notice

Hi,
I already flagged bash-completion several days ago in the packages system, but i wanted to stress the need for an update, here is the extract from the developer's site: http://www.caliban.org/bash/
bash 3.1 is now available. Initial reports suggest that there are some minor incompatibilities between this version and the 20050721 release of the bash completion code, which many people are still using. Please ensure that you upgrade to the 20060301 release, which is believed to fix these issues.
As you know, we have bash 3.1 on current for some time now, and well, i just wish i could use bash-completion again
I dont know where to post this, packages forums changed since the AUR and well... this is the best place i could find.

sud_crow wrote:
Hi iphitus,
i flagged it out of date, i didn't know the consequences of that, that issues a bug-tracker ticket?
just as a side note:
i thought on posting it because i know that the flag doesn't necessarily mean the update is important, but as this package didn't work anymore, i wanted to let know it was a pretty important update... although its not a base package and i / it can wait!
No, the flag emails the developer.
What i meant is that, most devs dont read the forums, but most do check the bug tracker, and would take notice if you issued a bug ticket to inform them.
iphitus

Similar Messages

  • Problems with Bash Completion

    Hi,
    I recently noticed an odd new behavior of the bash-completion package.
    For example:
    Lets say there is folder called 'Downloads'. The oldd behavior was:
    mv Dow[tab]
    mv Downloads/
    Now, it's like this:
    mv Dow[tab]
    mv Downloads
    (with a space after 'Downloads')
    It's annoying because, you can't get an ls output when pressing tab again.
    Another example: Let's assume there is a file called 'some file.txt'
    Old:
    mv some[tab]
    mv some\ file.txt
    New:
    mv some[tab]
    mv some file.txt
    Pretty annoying too. mv doesn't work anymore because of the space in the filepath.
    Does anyone know how to fix this?

    https://bbs.archlinux.org/viewtopic.php?id=113158

  • Bash completion and shell variables bug

    After a recent system upgrade, I noticed that bash completion of paths with shell variables is somewhat broken. For example:
    cd /
    cd $HOME/De<tab>
    #results
    cd \$HOME/Desktop<space>
    This definitely worked before, either instantly substituting the value of $HOME and then continuing to complete the directories as normal, or leaving the variable name form and completing the directories - I've seen both behaviors on different systems, but since they both worked fine for me I never cared to figure out why it would pick a particular behavior.
    But now, you'll notice that it knows I'm completing a directory, and completes one level, but then escapes the dollar sign so not even that expression works, and further adds a space instead of a forward slash on the end... if you delete the backslash and the space, and type a forward slash and part of another directory you'll get another completion, but then it breaks itself again the same way...
    By the way, I don't have bash_completion installed, I tried it after moving my .bashrc and "su - username" and ensuring the environment was clean, and I also moved the bash_completion.d directory out of paranoia, with no luck.
    Help?
    I guess I should just file a bug report with the bash project - it looks like the kinda completion you sometimes get to help you escape odd characters in filenames, for example
    touch 'odd[file'
    rm od<tab>
    # results
    rm odd\[file

    I just now decided to actually rebuild the bash package with this patch, and I was able to get it to work. I downloaded all the bash files from archlinux svn, I saved the patch as "completion.patch", and I added
    msg "applying patch ${srcdir}/completion.patch"
    patch -Np0 -i "${srcdir}/completion.patch"
    right after the patching loop in the PKGBUILD (and I added completion.patch to the source array and its md5sum to md5sums).
    Now having tried it, it's better than without the patch, but it's still not perfect - it adds a space after completing a folder in a path starting with a variable, instead of a slash, so to complete further path components you have to type backspace slash after each...

  • Problem with ssh and bash-completion

    I and a co-worker are having a weird problem with ssh and bash-completion. We have a local config in .ssh/config with hosts we connect everyday. An example:
    host foo
    hostname foo.org
    user foobar
    host foobar
    hostname foobar.org
    user foobar
    When we try to type
    ssh foo<tab><tab>b<tab>
    the console just freeze and we can't type anything, everything we type is ignored, but after about 30 seconds the host is completed.
    This works a some time ago, so some upgrade make this happen. Anyone can reproduce this?

    quigybo wrote:
    Actually thinking about it, rather than using the semi-dodgy fix posted on the bug tracker, we can just test if the daemon is running since we are not on MacOS X. It is cleaner and 250 ms quicker.
    --- bash_completion.orig 2010-09-14 05:33:22.000000000 +0930
    +++ bash_completion 2010-09-14 05:45:04.000000000 +0930
    @@ -1316,10 +1316,12 @@
    # contains ";", it may mistify the result. But on Gentoo (at least),
    # -k isn't available (even if mentioned in the manpage), so...
    if type avahi-browse >&/dev/null; then
    - COMPREPLY=( "${COMPREPLY[@]}" $( \
    - compgen -P "$prefix$user" -S "$suffix" -W \
    - "$( avahi-browse -cpr _workstation._tcp 2>/dev/null | \
    - awk -F';' '/^=/ { print $7 }' | sort -u )" -- "$cur" ) )
    + if [ -n "$(pidof avahi-daemon)" ]; then
    + COMPREPLY=( "${COMPREPLY[@]}" $( \
    + compgen -P "$prefix$user" -S "$suffix" -W \
    + "$( avahi-browse -cpr _workstation._tcp 2>/dev/null | \
    + awk -F';' '/^=/ { print $7 }' | sort -u )" -- "$cur" ) )
    + fi
    fi
    # Add results of normal hostname completion, unless
    This is the same test as was used in bash-completion 1.1.
    Thanks  quigybo, I use your patch, the issue is gone
    Why does so many packages depends on Avahi? Maybe make it optdepends is
    enough?
    my laptop $ pacman -Qi avahi
    Required By : gnome-disk-utility gnome-vfs libcups mpd sane

  • [SOLVED] Slight issue concerning pacman & bash completion

    Hi all,
    I've come across a small issue when using the -Rs option with pacman.
    The auto completion doesn't appear to be working for the first package name passed after the -Rs option.
    For example, when issuing the command
    pacman -Rs firefox
    and pressing tab twice, it will not show any options or auto-complete. However, if I add another package to be removed:
    pacman -Rs firefox chr
    and hit the tab key twice, autocomplete will work, and it'll autocomplete to chromium.
    Bash-completion (2.0-3) is installed, and the rest of the system is up to date. Am I missing something here, or have I stumbled upon a bug?

    I don't know so much about it, but I'm under the impression that bash-completion for pacman (once enabled in ~/.bashrc by adding "complete -cf pacman") works by default by checking the user's PATH variable, i.e. it will offer to complete pacman commands with the name of any executable in the user's PATH's () as well as the contents of the current directory. ... which means: if firefox isn't installed, it won't find it; if it is, it will offer this completion; if there's a file called firefox in the current directory, it will also offer it.
    but as I said, I'm not an expert on bash-completion

  • Loading bash-completion faster?

    getting sick of having to wait a second or so anytime i load a new shell to see my PS1.
    i found out that the sole culprit is sourcing /etc/bash_completion.
    I know you can already start typing when processing .bashrc and /etc/bash.bashrc is still ongoing, but it's kinda ugly.
    anyone knows how to make it faster?
    just some ideas that may [not] be feasible/possible:
    - load completions in the background (`source` is synchronous though)
    - show PS1 already when completions are not loaded yet.  maybe we could make it so that the end of .bashrc you change the color of PS1.
    - make a custom package of bash-completion that has no files for stuff i don't use (apt, moosay, yum etc)

    I didn't believe you in #bash. ;)
    Anyway, you can try set -a or export -f function_name (lots of functions in bash_completion so exporting them one by one isn't practical).
    Putting set -a in ~/.bash_profile will export everything. This could be a solution since that file is only sourced during login shells, meaning it'll only load it once per vc. Now instead of sourcing bash_completion from bashrc, do it from bash_profile.
    The trade-off is that now these functions/variables are available in non-interactive instances like scripts, which shouldn't be a problem since good scripts define their functions or source them at runtime.
    Edit: make sure SHELLOPTS is not exported, else the -a attribute gets inherited.
    Last edited by pwd (2009-12-28 01:41:46)

  • Git bash-completion giving problems?

    I get this on startup (in tty1 AFTER gnome starts up in tty7)
    /etc/bash_completion.d/git: line 123: syntax error near unexpected token `<'
    /etc/bash_completion.d/git: line 123: ` done < <(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')'
    I have not changed /etc/bash_completion.d/git at all, and the file appears to be the right one from the git package. Git's bash-completion seems to work, if I type 'git p' and then tab it'll show me push/pull as options....
    Ideas, anyone? Only happening to me?

    Looks like this thread: https://bbs.archlinux.org/viewtopic.php?id=101586

  • Netcfg2 with bash-completion

    I've written a script to support bash completion for netcfg2.
    Here it is:
    http://fatcat.ftj.agh.edu.pl/~sitarzm/A … on/netcfg2
    Just download it and place it in /etc/bash_completion.d, log out and login again and give it a try.

    MAC!EK wrote:
    Since the script was quite old I replaced it with a new version on that site:
    http://fatcat.ftj.agh.edu.pl/~sitarzm/A … ion/netcfg
    or
    http://fatcat.ftj.agh.edu.pl/~sitarzm/A … on/netcfg2
    uastasi if you want the completion to work with 'n' command add a line at the end:
    complete -F _netcfg n
    Awesome, thank you :)

  • Bash completion broken since upgrade

    Hi,
    since I did an upgrade the bash autocompletion behaves strange. Completing directories will end in a space instead of an slash. Eg you enter "/et[tab]" and it completes "/etc " instead of "/etc/". This makes navigating directory hierarchies a PITA. Can anyone confirm this? Any known workarounds?

    For those still looking for a solution to this:
    From: http://aur.archlinux.org/packages.php?ID=16980
    Comment by: vl981 on Fri, 31 Dec 2010 03:57:13 +0000
    Hi.
    For those who use this package and bash completion in same time:
    remove the _filedir function from the '/etc/bash_completion.d/acroread'
    file provided by the package. See http://forums.adobe.com/thread/745833.
    P.S. Updated PKGBUILD and respected acroread files one may found here:
    https://github.com/vp1981/pkgbuild/raw/master/acroread/PKGBUILD
    https://github.com/vp1981/pkgbuild/raw/master/acroread/PKGBUILD
    Last edited by kontax (2011-02-11 10:52:20)

  • Bash completion of alias

    I have the following lines in my .bashrc:
    alias y='yaourt'
    alias yq='y -Q'
    complete -o filenames -F _yaourt y
    This allows me to do bash completion with just 'y -Q' or 'y' followed by any argument. However, I'm trying to get completion to work when I type in 'yq'. I was wondering if there was a way to send the argument '-Q' to the yaourt completion? Or would I need to write a separate wrapper function?

    Yes, but it doesn't work. The problem is that yaourt by itself has no tab completion. It requires arguments so that it knows what type of completion it is: ie. installed vs not installed programs. I would prefer to get it to work in bash, but if not, I'll take a look at zsh.

  • Bash-completion for archlinux (ready for testing)

    EDIT (20031013): new url & version 1.0 is out
    Hello all,
    I've created a bash-completion script for AL.
    Get it from :
    http://www.kegep.tuc.gr/~manolis/archli … ion.script
    Then :
    pacman -S bash-completion
    copy my script as /etc/bash_completion.d/archlinux
    source /etc/profile
    or log out & back in to enable auto-completion.
    Then simply try pacman -S [tab] to check it.
    So far it auto-completes the init scripts (try /etc/rc.d/network [tab]...), makepkg & pacman.
    Please test it & report any problems or suggestions so that it could get included in the bash-completion pkg.

    sud_crow wrote:Im not chassing you, i swear!
    I begin to feel like a dot in pacman .
    sud_crow wrote:Can you post some explination about its use?? what it does exactly (i know what auto-completions is, but,  what auto-completes and how?)
    Auto-completion is the best thing since fresh bread . You already use it, when you press [tab] or (ie pac[tab]) and it completes the rest of the word (ie pacman). The bash-completion pkg provides some more advanced completion features, like man pac[tab] and it completes it to man pacman, or ssh [tab] and it completes using the hosts included in ~/.ssh/known_hosts.
    My script provides these features for ArchLinux. Simply try pacman -S [tab] and enjoy the list of all available packages for installation on your system. Or pacman -Q -l [tab] that completes from packages installed in your system. Then try /etc/rc.d/network [tab], it will list 'restart start stop'
    (ps. [tab] == pressing the 'tab' key on your keyboard btw.)

  • Bash-completion upgrade conflicts with pacman

    pacman warned me that /usr/share/bash-completion/completions/makepkg would be overwritten.
    pacman -Oo said then that it's part of bash-completion 1.99-1, but there's already bash-completion 1.99-2 that hasn't any more included that file cause now as it seems, the file move into the new pacman package.
    https://projects.archlinux.org/svntogit … 50dbc12ba0
    So following process to not corrupt anything:
    1) Move the file out of the way:
    # mv /usr/share/bash-completion/completions/makepkg /usr/share/bash-completion/completions/makepkg.bak
    2) Upgrade pacman
    # pacman -S pacman
    3) Upgrade bash-completion (this step will remove the file)
    # pacman -S bash-completion
    4) Reinstall pacman again, to not loose the file.
    # pacman -S pacman
    5) Now, you can remove the backup.
    # rm -f /usr/share/bash-completion/completions/makepkg.bak

    toofishes wrote:
    defcon wrote:
    i've seen that pacman 3.1 has it's own bash completion file
    i installed the new pacman, but bash_completion doesnt work....
    Did you source it or logout/login? It doesn't magically do that itself.
    . /etc/bash_completion
    both, i reload it with source ~/.bashrc  and later i logged out/in

  • Bash completion upgrade breaks pacman bc

    hello,
    today's bash completion upgrade deletes the archlinux file under /etc/bash_completion.d/.
    pacman's bash completion doesn't work anymore. i've seen that pacman 3.1 has it's own bash completion file.
    is this somehow related?
    vlad
    ps: i'm not using testing.
    Last edited by DonVla (2008-01-10 17:50:15)

    toofishes wrote:
    defcon wrote:
    i've seen that pacman 3.1 has it's own bash completion file
    i installed the new pacman, but bash_completion doesnt work....
    Did you source it or logout/login? It doesn't magically do that itself.
    . /etc/bash_completion
    both, i reload it with source ~/.bashrc  and later i logged out/in

  • Bash-completion works only with X

    Hi,
    For a long time bash-completion has not been working for me in VC. This didn't change with numerous upgrades, so I think this must be due to some my local setting. In VC it doesn't work for any user and in X it works for all users, so it is most probably something system-wide that is causing this. I never touched any files owned by bash-completion package. I browsed through /etc/profile and /etc/profile.d/ but didn't find anything weird.
    Any clues where to fix this?
    Thanks!

    I've always had the same problem as the OP, just never got round to posting about it. A solution would make my systemctl aliases much more useful.
    @Trilby, you need the bash-completion package installed.
    Last edited by slithery (2015-01-06 21:50:34)

  • BASH completion problem

    i have "bash-completion" package installed but when i do this:
    $ xine
    and press TAB, it does not show me list of files. sometimes it shows the files but most of the times it does not. same with all others commands:
    $ rm -v
    here too it does not show any files, as i said sometimes it does but most of the times it does not. if i do
    $ cd
    and press TAB then it always shows the directories,. never fails with directories but not the same with files.
    what could be the problem ? i have no problems like this with ZSH.

    prim wrote:You have to run bash as a login shell.
    See http://bbs.archlinux.org/viewtopic.php?id=30205
    well i used "chsh" to change my login shell to BASH and when i tried to this script:
    if [[ -o login ]]; then
        echo "Welcomoe to BASH as login shell"
    else
        echo "NOPE..... NOPE.... NOPE..NOPE"
    fi
    i always get "NOPE...NOPE...."
    i use "rxvt-unicode" and my "~/.Xdefaults" file says this: 
    ! rxvt-unicode settings                                                                                                     
    urxvt*loginShell:               true                                                                                         
    urxvt*saveLines:               10000           
    i still do not undertsand my the tab-completion system doe snot work and why BASH is still not the login shell

Maybe you are looking for

  • Connecting SPSS to my oracle database

    Hello I am trying to connect my SPSS to our database. My system includes: SPSS 14 Oracle 8.17 Windows XP and now Oracle 10g (I am not very computer literate, so if you need more info let me know) I initially did not have Oracle 10g on my computer, bu

  • Can I increase the no. of measures (more than 6) on page without scrolling

    hi I am creating a jsp using bibeans. When my measures are more than 6, it will create a left-right arrow, so I can display at a time only 6 measures at a time. when it is more than 6 , i have to scroll left or right although lot of space available o

  • Deleted my recently added

    i deleted my recently added from my play list and dont know how to get it back HELP

  • How to register remote WebLogic 9 with netbeans5

    can anybody tell me is it possible to register remote WebLogic 9 with netbeans5

  • Interfaces concept ...Urgent?

    Hi all, As we all know multiple inheritance cannot be achieved in ABAP classes, so we need to take INTERFACES approach, I am trying to do from the below mentioned code. *&            INTERFACE Stu_course INTERFACE stu_course.   DATA : course_id.   ME