Re: [Bash-completion-devel] How to build the autocompletion from git repo?

2014-06-04 Thread Igor Murzov
On Tue, 3 Jun 2014 13:03:50 +0300 Ville Skyttä ville.sky...@iki.fi wrote: On Tue, Jun 3, 2014 at 1:49 AM, Igor Murzov intergalactic.anonym...@gmail.com wrote: On Wed, 2 Apr 2014 17:07:34 +0300 autoreconf -i is a good first try with just about any project using autotools

Re: [Bash-completion-devel] How to build the autocompletion from git repo?

2014-06-02 Thread Igor Murzov
On Wed, 2 Apr 2014 17:07:34 +0300 Ville Skyttä ville.sky...@iki.fi wrote: On Wed, Apr 2, 2014 at 3:02 PM, Adam Ryczkowski adam.ryczkow...@statystyka.net wrote: The .configure script mentioned by the README is missing. README document the setup from a release tarball, not git. When I

Re: [Bash-completion-devel] [PATCH] make completion shouldn't be confused by the output of $(info confuse: make)

2014-05-19 Thread Igor Murzov
On Sun, 18 May 2014 14:10:50 +0100 Tristan Wibberley tristan.wibber...@gmail.com wrote: Currently, make completion will parse the output of $(info ...) looking for make targets. It's too easy to cause extra targets to be suggested by accident. This patch makes completion ignore lines that

Re: [Bash-completion-devel] [PATCH] make completion shouldn't be confused by the output of $(info confuse: make)

2014-05-19 Thread Igor Murzov
On Tue, 20 May 2014 01:41:28 +0400 Igor Murzov intergalactic.anonym...@gmail.com wrote: On Sun, 18 May 2014 14:10:50 +0100 Tristan Wibberley tristan.wibber...@gmail.com wrote: Currently, make completion will parse the output of $(info ...) looking for make targets. It's too easy to cause

Re: [Bash-completion-devel] [patch] /etc/profile.d/bash_completion.sh

2014-05-13 Thread Igor Murzov
On Sat, 23 Nov 2013 18:09:58 +0100 Thilo Six ml...@xk2c.de wrote: Hello ,[ /etc/profile.d/bash_completion.sh ] - bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} - if [ $bmajor -gt 4 ] || [ $bmajor -eq 4 -a $bminor -ge 1 ]; then + if [[ ${BASH_VERSINFO[0]}

Re: [Bash-completion-devel] [bash-completion-Bugs][314417] completion for cc and c++ does not work

2013-09-08 Thread Igor Murzov
complete -F _gcc gcc g++ g77 gcj gpc { cc --version 2/dev/null | grep -q GCC complete -F _gcc cc || : c++ --version 2/dev/null | grep -q GCC complete -F _gcc c++ || : } Looking in this code, i wonder why there is no such lines for gfortran? Is there some issues with it? I wrote a

Re: [Bash-completion-devel] bash completion for modules

2013-07-23 Thread Igor Murzov
On Tue, 23 Jul 2013 16:10:58 + (GMT) Nathan Hjelm hje...@me.com wrote: Hello, I have a bash completion script for the environment modules package (script attached.) This script differs quite a bit from the one included in modules-3.2.10. The attached version supports tab completion of

Re: [Bash-completion-devel] Disable multiple completions

2013-07-17 Thread Igor Murzov
On Mon, 08 Apr 2013 00:52:50 -0400 Limao Luo luoli...@gmail.com wrote: Is there a way to disabling showing the completions menu more than once in a row? Nope. -- Igor ___ Bash-completion-devel mailing list

[Bash-completion-devel] configs for cmake build system

2013-04-04 Thread Igor Murzov
notably CMake itself). Here is the patch: -- From b07c113e6746db0d5a2c32d1e91ef90c760987e1 Mon Sep 17 00:00:00 2001 From: Igor Murzov e-m...@date.by Date: Mon, 19 Mar 2012 00:49:57 +0400 Subject: [PATCH] Add config for cmake to bash-completion

Re: [Bash-completion-devel] Time to release 2.1?

2013-04-01 Thread Igor Murzov
On Wed, 27 Mar 2013 21:28:37 +0200 Ville Skyttä ville.sky...@iki.fi wrote: Hello, WDYT, would it be time to release 2.1? I think enough useful things have been added since 2.0, and there's nothing intrusive and nothing larger in progress AFAIK so now could be a good time to do it. Do we

Re: [Bash-completion-devel] -option=word1|word2|word3

2013-02-09 Thread Igor Murzov
On Mon, 4 Feb 2013 11:01:48 +0100 Dr. med. Christoph Gille christoph.gi...@charite.de wrote: I am new to this list and need help. I am writing a bash completion for a program. The option -aligner=... takes one from a list of words. For instance -aligner=t_coffee -aligner=clustalw It

Re: [Bash-completion-devel] bash completion for gnokii(1)

2012-10-13 Thread Igor Murzov
The script looks fine in general, but I have to make some remarks about it. * There are some minor cosmetic fixes could be done. For example ${words[$((cword-2))]} could be replaced with ${words[cword-2]}. * The bigger problem is that you are seems to forgot to suppress error messages of

Re: [Bash-completion-devel] tmux bash-completion

2012-10-13 Thread Igor Murzov
On Tue, 09 Oct 2012 12:34:28 +0200 Marcel Partap mpar...@gmx.net wrote: Hi, the tmux package contains a file /usr/share/doc/tmux/examples/bash_completion_tmux.sh, I asked the package maintainer to ln -s it into /etc/bash_completion.d/ and he replied that he would rather see it merged into

Re: [Bash-completion-devel] Completion for nvidia-settings

2012-09-22 Thread Igor Murzov
The style is bad, so it's not likely to be merged in as is. Can you fix the style or you want someone else to fix it? Also i don't have any nvidia gpu, so i can't test the code and can't fix it. -- Igor On Sat, 22 Sep 2012 05:55:04 -0500 Isaac Cammann icamm...@gmail.com wrote: If anyone is

Re: [Bash-completion-devel] Improve make target completion

2012-09-12 Thread Igor Murzov
completion patch I've sent so far. Also answers to your questions below: On 11 September 2012 21:21, Igor Murzov e-m...@date.by wrote: Looks like this one works much slower than the previous. Fixed by reverting key elements to be as in the previous incremental completion change

Re: [Bash-completion-devel] Improve make target completion

2012-09-11 Thread Igor Murzov
Wibberley On 5 September 2012 22:50, Igor Murzov e-m...@date.by wrote: On Wed, 5 Sep 2012 19:59:06 +0100 Tristan Wibberley tristan.wibber...@gmail.com wrote: commit-a1843b3: Rolled up previous changes. Also made the displayed suggestions only show the next step of the completion, like file

Re: [Bash-completion-devel] Fixed competion of '~' and '~xx' in _filedir_xspec()

2012-09-06 Thread Igor Murzov
cur prev words cword _init_completion || return -_expand || return 0 +_tilde $cur || return 0 local IFS=$'\n' xspec=${_xspecs[${1##*/}]} tmp local -a toks -- 1.7.9.5 On Wed, Sep 5, 2012 at 6:00 PM, Igor Murzov e-m...@date.by wrote: On Sun, 26 Aug 2012 16

Re: [Bash-completion-devel] wget(1) completion

2012-09-05 Thread Igor Murzov
On Wed, 5 Sep 2012 13:01:14 +0200 Raphaël Droz raphael.d...@gmail.com wrote: On Sun, Jul 22, 2012 at 03:14:28PM +0400, Igor Murzov wrote: This completion looks good to me and I'd like to merge it in. Please fix formating (no tabs, 80-column wrapping) and prepare the patch. I know that you

Re: [Bash-completion-devel] Fixed competion of '~' and '~xx' in _filedir_xspec()

2012-09-05 Thread Igor Murzov
On Sun, 26 Aug 2012 16:20:37 +0400 wonder.mice wonder.m...@gmail.com wrote: As I understand, this patch solves Please do not expand leading tildes problem when _filedir_xspec is used (for vim, for example). --- diff --git a/bash_completion b/bash_completion index b58e37e..912a8e6 100644

Re: [Bash-completion-devel] wget(1) completion

2012-08-28 Thread Igor Murzov
ping? ping ? (this one being rerolled for years) forgot to re-attach the file: wget(1) completion This completion looks good to me and I'd like to merge it in. Please fix formating (no tabs, 80-column wrapping) and prepare the patch. I know that you have a mirror of bash-completion,

Re: [Bash-completion-devel] Bug#685377: bash-completion: fusermount -u does not complete curlftpfs-mounts

2012-08-22 Thread Igor Murzov
Package: bash-completion Version: 1:2.0-1 Severity: minor Tags: patch Because the filesystem-type of curlftpfs-mount in /etc/mtab is just fuse instead of fuse.curlftp or something like that (cf. sshfs = fuse.sshfs), they are not completed. This patch fixes that. Your patch has been

Re: [Bash-completion-devel] wget(1) completion

2012-07-22 Thread Igor Murzov
ping ? (this one being rerolled for years) forgot to re-attach the file: wget(1) completion This completion looks good to me and I'd like to merge it in. Please fix formating (no tabs, 80-column wrapping) and prepare the patch. I know that you have a mirror of bash-completion, but it doesn't

Re: [Bash-completion-devel] I don't think this is a bug, that is why I am sending you a mail

2012-07-09 Thread Igor Murzov
: Argument list too long 906$ Cheers Tommy 2012/7/9 Igor Murzov e-m...@date.by I don't think this is a bug, that is why I am sending you a mail, because it is too much for your bugreports, and I think it is more of a me problem, and a software problem. And I have worked so

Re: [Bash-completion-devel] I don't think this is a bug, that is why I am sending you a mail

2012-07-09 Thread Igor Murzov
On Mon, 9 Jul 2012 18:16:51 +0200 Tommy Bollman tommy.boll...@gmail.com wrote: Hello Igor! I can try, where do I find version 2.0? http://bash-completion.alioth.debian.org/files/bash-completion-2.0.tar.bz2 -- Igor Cheers Tommy 2012/7/9 Igor Murzov e-m...@date.by Hello Igor

Re: [Bash-completion-devel] I don't think this is a bug, that is why I am sending you a mail

2012-07-08 Thread Igor Murzov
I don't think this is a bug, that is why I am sending you a mail, because it is too much for your bugreports, and I think it is more of a me problem, and a software problem. And I have worked so HARD to make this work, so I hope you take your time to look through the data I send with you,

[Bash-completion-devel] Bug#680529: Bug#680529: bash-completion should include .msi for Wine

2012-07-06 Thread Igor Murzov
Package: bash-completion Version: 1.2-3 Tags: patch Severity: wishlist From https://bugs.launchpad.net/debian/+source/bash-completion/+bug/864967 Bash auto-completion works with .exe, .bat, etc. but it should also work with .msi (Microsoft Installer packages). Applied. Thanks. --

Re: [Bash-completion-devel] Just add the completion for man but nothing else

2012-03-13 Thread Igor Murzov
On Mon, 12 Mar 2012 10:45:55 -0500 Peng Yu pengyu...@gmail.com wrote: Hi, I want to just add bash completion for man but nothing else (so '. /opt/local/etc/bash_completion' is not an option for me). Then you need to port the script completions/man to plain bash avoiding to use any functions

Re: [Bash-completion-devel] Bug#657318: bash-completion: improve zutils completion

2012-01-25 Thread Igor Murzov
On Wed, 25 Jan 2012 16:29:00 +0100 Christoph Anton Mitterer cales...@scientia.net wrote: It should at least complete all endings supported by zutils, which are much more (*.xz etc. etc.). My zgrep (from gzip package) can't handle *.xz and I have the latest stable version (1.4) of gzip

Re: [Bash-completion-devel] 'git flow' Completions

2012-01-18 Thread Igor Murzov
Could you add the completions for the popular 'git flow' extension to bash completion please? You can find it at https://github.com/bobthecow/git-flow-completion Completion for the `git flow` as I can see relies on completion for `git`. And we don't provide completion for `git`, so we'll

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-107-g08a2264

2011-12-20 Thread Igor Murzov
it breaks at least on Solaris and FreeBSD. Sorry. Fixed this. -- Igor ___ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel

Re: [Bash-completion-devel] New beta/rc release?

2011-12-19 Thread Igor Murzov
+1 for another 1.9x release. David? Here! o/ I can make a 1.91 whenever you wish; just tell me which commit to use. The last one in my repo is a229ea46e701af1c8d55ae44bb61b025af00ec1e . That's the latest in master at the moment. I don't have anything pending, but

Re: [Bash-completion-devel] New beta/rc release?

2011-12-15 Thread Igor Murzov
+1 for another 1.9x release. David? Here! o/ I can make a 1.91 whenever you wish; just tell me which commit to use. The last one in my repo is a229ea46e701af1c8d55ae44bb61b025af00ec1e . That's the latest in master at the moment. I don't have anything pending, but

Re: [Bash-completion-devel] robustness: var=$(cmd1) cmd2 -tab

2011-12-14 Thread Igor Murzov
I'm having a hard time believing that it's really this hard to get stuff to work, are we doing something wrong? There must be a cleaner way. I think we made some good progress with bash-completion and it is much more usable now then ever before. I think we should concentrate on the stable

Re: [Bash-completion-devel] robustness: var=$(cmd1) cmd2 -tab

2011-12-13 Thread Igor Murzov
The attached patch appears to fix it for _parse_help, without breaking completions for commands from paths containing backslashed chars (e.g. whitespace) or ones starting with a tilde. _parse_usage is similarly affected, but I'm not applying this to either because all this mess starts to

Re: [Bash-completion-devel] typo/enhancements for styleguide.txt

2011-12-04 Thread Igor Murzov
On Sun, 4 Dec 2011 19:49:33 +0100 Raphaël Droz raphael.droz+fl...@gmail.com wrote: -#91;[ ]] vs [ ] +[[ ]] vs [ ] This is not a typo. Your patch breaks makeHtml.sh. -- Igor ___ Bash-completion-devel mailing list

Re: [Bash-completion-devel] mount, umount completions

2011-12-03 Thread Igor Murzov
But I've *guessed* something else: $ umount tab # list the entries including /home/me/private $ cd /home/me $ umount pritab # list pri* with filedir -d instead of private only I've tried to fix this:

Re: [Bash-completion-devel] mount, umount completions

2011-12-02 Thread Igor Murzov
I took a look on the zsh's mount completion and it looks very similar to what in the mount branch, though zsh supports lots of operating systems. * There should be a way to test if we are completing a device (_filedir) or a mount point (_filedir -d) (at the end of the completion) I can't

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-50-g834379e

2011-11-23 Thread Igor Murzov
On Sun, 20 Nov 2011 12:05:23 +0200 Ville Skyttä ville.sky...@iki.fi wrote: # Note: intentionally using COMP_WORDS and COMP_CWORD instead of # words and cword here due to splitting on = causing index differences But using COMP_WORDS directly will brake for any argument, that

Re: [Bash-completion-devel] Always using [[ instead of [

2011-11-20 Thread Igor Murzov
On Sun, 20 Nov 2011 12:00:36 +0200 Ville Skyttä ville.sky...@iki.fi wrote: On 11/20/2011 03:28 AM, Igor Murzov wrote: That's not true. Double brackets still need quotes: -- $ x=a\ b $ y=a\ bc $ [[ $y == $x* ]] echo [$x] is prefix of [$y

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-54-gf0283e1

2011-11-20 Thread Igor Murzov
On Sun, 20 Nov 2011 16:39:54 +0200 Ville Skyttä ville.sky...@iki.fi wrote: On 11/20/2011 03:14 PM, Igor Murzov wrote: The following commit has been merged in the master branch: commit f0283e1c1b64202bb1adb9f44eac6fdfd80edece Author: Igor Murzov e-m...@date.by Date: Sun Nov 20 17:00:03

[Bash-completion-devel] mount, umount completions

2011-11-19 Thread Igor Murzov
Hi, list. There are new linux-specific mount and umount completions in the mount branch. Please review and test. The new completions address Alioth bugs #313166, #313214 and #313437. -- Igor ___ Bash-completion-devel mailing list

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-50-g834379e

2011-11-19 Thread Igor Murzov
# Tools seem to be named e.g. like memcheck-amd64-linux from which # we want to grab memcheck; the same dir may contain things like # default.supp, vgpreload_*.so etc which we want to skip. # TODO: probably needs adjustment to be more generic COMPREPLY=( $( compgen -W $( \

Re: [Bash-completion-devel] Always using [[ instead of [

2011-11-19 Thread Igor Murzov
On Sat, 05 Nov 2011 20:22:32 +0200 Ville Skyttä ville.sky...@iki.fi wrote: On 11/05/2011 06:48 PM, Igor Murzov wrote: -[ -r $i ] config+=( $i ) +[ -r $i ] config+=( $i ) Related to the above, I've had the intention to suggest that we apply a policy of always

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-50-g834379e

2011-11-17 Thread Igor Murzov
The following commit has been merged in the master branch: commit 834379ef6381c83a51d9277617d49bc3d3b10c7c Author: Ville Skyttä ville.skytta at iki.fi Date: Thu Nov 17 18:00:41 2011 +0200 valgrind: New completion. That's crazy, I also wrote completion for valgrind %)

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-47-g068a1a1

2011-11-16 Thread Igor Murzov
On Wed, 16 Nov 2011 23:58:22 +0200 Ville Skyttä ville.sky...@iki.fi wrote: On 11/16/2011 10:21 PM, Igor Murzov wrote: The following commit has been merged in the master branch: commit b3fcb55dcf3d5a99d9a705a54dd649a976706d3f Author: Igor Murzov e-m...@date.by Date: Wed Nov 16 23:46:29

[Bash-completion-devel] [PATCH][bash-completion-Bugs][311403] DBTS 501837: don't use uname for pidof completion, just check for its presence

2011-11-15 Thread Igor Murzov
Proposed patch for Alioth #311403: From 0aa2c008320bdc6bf56a1bec8558a1754c23 Mon Sep 17 00:00:00 2001 From: Igor Murzov e-m...@date.by Date: Tue, 15 Nov 2011 23:46:25 +0300 Subject: [PATCH] pidof: Don't check OS type (Alioth #311403) Also drop non-existent option arguments completion

Re: [Bash-completion-devel] Towards dynamic completion loading

2011-11-14 Thread Igor Murzov
On Mon, 14 Nov 2011 21:54:47 +0200 Ville Skyttä ville.sky...@iki.fi wrote: On 11/14/2011 10:21 PM, Igor Murzov wrote: On Wed, 26 Oct 2011 20:47:43 +0300 Ville Skyttä ville.sky...@iki.fi wrote: On 10/26/2011 08:10 PM, Ville Skyttä wrote: On 10/26/2011 10:24 AM, David Paleino wrote

[Bash-completion-devel] Get stuck again

2011-11-13 Thread Igor Murzov
I can't understand how $COMP_WORDBREAKS works and why quotes on command line give such a weird result. Test function is following: -- _zz() { echo -e \n* $COMP_CWORD: for (( i=0; i = COMP_CWORD; i++ )); do echo [${COMP_WORDS[i]}] done } complete -F _zz

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.3-532-gd54db35

2011-11-11 Thread Igor Murzov
On Fri, 11 Nov 2011 09:36:54 +0200 Ville Skyttä ville.sky...@iki.fi wrote: On 11/09/2011 10:20 PM, Igor Murzov wrote: +local var=NPROCESSORS_ONLN +[[ $OSTYPE == *linux* ]] var=_$var +local n=$( getconf $var 2/dev/null ) +printf %s ${n:-1} I don't know why

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.3-512-g9717124

2011-11-09 Thread Igor Murzov
On Tue, 08 Nov 2011 18:21:21 +0200 Ville Skyttä ville.sky...@iki.fi wrote: Good. Can I push this variant to the master branch? Sure, go ahead. But I've run into something not nice at all (and not at all related to your changes): $ bash --norc $ _foo() { echo -n completing foo ; } $

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.3-532-gd54db35

2011-11-09 Thread Igor Murzov
+local var=NPROCESSORS_ONLN +[[ $OSTYPE == *linux* ]] var=_$var +local n=$( getconf $var 2/dev/null ) +printf %s ${n:-1} I don't know why, but on my system getconf works differently (note the leading underscore in the variable name): $ LANG=C getconf NPROCESSORS_ONLN

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.3-512-g9717124

2011-11-07 Thread Igor Murzov
On Mon, 07 Nov 2011 18:41:16 +0200 Ville Skyttä ville.sky...@iki.fi wrote: I pushed new variant of the fix to the service branch. Can you look into it? I didn't look into the code that closely, but it works as expected in all test cases I threw at it, cool. Good. Can I push this

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.3-512-g9717124

2011-11-05 Thread Igor Murzov
On Sat, 05 Nov 2011 20:19:02 +0200 Ville Skyttä ville.sky...@iki.fi wrote: On 11/05/2011 06:48 PM, Igor Murzov wrote: The following commit has been merged in the master branch: commit 9717124ab7bad30b6d8ba02ef91850c6bb74dd63 Author: Igor Murzov e-m...@date.by Date: Sat Nov 5 20:13:05

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.3-512-g9717124

2011-11-05 Thread Igor Murzov
On Sun, 06 Nov 2011 00:13:09 +0200 Ville Skyttä ville.sky...@iki.fi wrote: On 11/05/2011 11:50 PM, Igor Murzov wrote: How about this (diff is against prior version as this is more demonstrative)? Something along those lines looks better, thanks for looking into it. But if I read

Re: [Bash-completion-devel] bash-completion 1.90

2011-11-03 Thread Igor Murzov
On Thu, 3 Nov 2011 12:28:03 +0100 David Paleino da...@debian.org wrote: Hello everybody, I just released bash-completion 1.90, a preview of bash-completion 2.0, featuring (..drumroll..) dynamic loading of completions (thanks to Ville!). The changes in this release from 1.3 are available at:

Re: [Bash-completion-devel] Towards dynamic completion loading

2011-10-23 Thread Igor Murzov
Why try to load different completions for the same program. Because it might not be the same program; for example we want different completions for /etc/init.d/mysql and /usr/bin/mysql. Ok, if you really need this, then we should work with real path here at least. Using relative paths is

Re: [Bash-completion-devel] Towards dynamic completion loading

2011-10-23 Thread Igor Murzov
Found a regression. Completing shell variables names no longer works. $ echo $BTAB gives me $ echo \$BASH for dynamic-loading branch. Further hits of tab button give no effect. But then again, completing variable names doesn't really work in the master branch either for

Re: [Bash-completion-devel] Towards dynamic completion loading

2011-10-22 Thread Igor Murzov
On Thu, 20 Oct 2011 20:47:45 +0300 Ville Skyttä ville.sky...@iki.fi wrote: No comments yet? If there are none or there are no strong objections soon, I'm going to merge this to master soon I have tested dynamic loading now. That's what I don't like or understand: 1. # If full path below

Re: [Bash-completion-devel] Towards dynamic completion loading

2011-10-22 Thread Igor Murzov
On Sat, 22 Oct 2011 13:00:57 +0300 Ville Skyttä ville.sky...@iki.fi wrote: On 10/03/2011 04:03 AM, Igor Murzov wrote: And maybe it is a good idea to put functions used by more than one completion to its own file. No objections, but on the other hand no hurry either as far as I'm

[Bash-completion-devel] [PATCH 1/2] Don't use full path in the _completion_loader() function.

2011-10-22 Thread Igor Murzov
--- bash_completion |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/bash_completion b/bash_completion index 4bfa4de..84bbe80 100644 --- a/bash_completion +++ b/bash_completion @@ -1817,17 +1817,12 @@ _completion_loader() local compdir=./completions [[

[Bash-completion-devel] [PATCH 2/2] Merge completions/service into the bash_completion script.

2011-10-22 Thread Igor Murzov
Also make this completions work on Slackware GNU/Linux. --- bash_completion | 48 ++-- completions/service | 40 2 files changed, 42 insertions(+), 46 deletions(-) delete mode 100644 completions/service

Re: [Bash-completion-devel] Towards dynamic completion loading

2011-10-22 Thread Igor Murzov
Found a regression. Completing shell variables names no longer works. $ echo $BTAB gives me $ echo \$BASH for dynamic-loading branch. Further hits of tab button give no effect. -- Igor ___ Bash-completion-devel mailing list

Re: [Bash-completion-devel] Towards dynamic completion loading

2011-10-02 Thread Igor Murzov
Anything else? I have a bunch of completions that don't need anything from other files already split up locally (see 1) above) and unless there are objections, I'm going to commit that to master soon. Ok, I understood everything now :) No objections from me. But testing of all that dynamic

[Bash-completion-devel] [PATCH] _command_offset: Restore compopts used by called command.

2011-09-25 Thread Igor Murzov
This fixes completions that rely on their compopts, most notably mount(8). Fixes bash-completion bug #313183. I've tested this patch and it passes tests and I haven't seen any regression. But, it is likely that the testsuite is not complete, so I can't be sure, that nothing is broke. For

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.3-403-gbd482ca

2011-07-18 Thread Igor Murzov
On Mon, 18 Jul 2011 11:46:04 +0200 David Paleino da...@debian.org wrote: On Sun, 17 Jul 2011 22:56:48 +, Igor Murzov wrote: The following commit has been merged in the master branch: commit bd482ca2f221323aa461ca75c9457ec11f43570e Author: Igor Murzov e-m...@date.by Date: Mon Jul

Re: [Bash-completion-devel] cups

2011-06-19 Thread Igor Murzov
I wanted to use send-email this time but I realized I don't know git. I strongly believed that the following would format 1 patch only: $ git format-patch --stdout ee875cb29a26133f9dae0625b2369b8072ff9095 -- completions/cups but it didn't (it is pushed in gitorious). git format-patch

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.3-349-ga0834d3

2011-06-07 Thread Igor Murzov
В сообщении от 6 июня 2011 23:59:44 автор Ville Skyttä написал: kcov: New completion [...] +if [[ $cur == -* ]]; then +COMPREPLY=( $( compgen -W '$( _parse_help $1 --help )' -- $cur ) ) +[[ $COMPREPLY == *= ]] compopt -o nospace +return 0 +fi

Re: [Bash-completion-devel] Get stuck

2011-06-03 Thread Igor Murzov
В сообщении от 25 мая 2011 21:59:30 автор Ville Skyttä написал: Maybe try to add % to it instead and see if that leads to something useful? $ bash --norc $ echo $COMP_WORDBREAKS '@=;|(: Adding % to COMP_WORDBREAKS indeed solves the issue. I suppose that applying Raphaël's patches to bash

[Bash-completion-devel] Get stuck

2011-05-23 Thread Igor Murzov
Hey! I get stuck trying to implement completion script for strings containing two parts for completion delimited by '%' sign. For example, `cmd opt%arg`. The problem is that, if i hit tab key, when cursor is behind delimeter, bash eats first part of string leaving `cmd arg`. I just can't

Re: [Bash-completion-devel] [PATCH] Bug#559953: COMP_WORDS: bad array subscript

2011-05-01 Thread Igor Murzov
For example, write ls and then go to the start of line, what do you think $cur and $prev should be set to when completing at that point? I think both of them should be empty, but then again I also think that in that case the ls completion should not be invoked at all which may be a bash bug.

[Bash-completion-devel] [PULL REQUEST] pkgtools, rpm2tgz, slackpkg, sbopkg and slapt-get/slapt-src completions

2011-05-01 Thread Igor Murzov
-completion-package- needs-testing-875458/) Signed-off-by: Igor Murzov e-m...@date.by Signed-off-by: Sergey V. sftp.mt...@gmail.com Signed-off-by: Robby Workman rwork...@slackware.com Ville Skyttä wrote: As you seem to be involved with development of these tools upstream, have you considered

[Bash-completion-devel] [PATCH] Bug#559953: COMP_WORDS: bad array subscript

2011-04-29 Thread Igor Murzov
Mon Sep 17 00:00:00 2001 From: Igor Murzov i...@gplsoft.org Date: Fri, 29 Apr 2011 13:22:48 +0400 Subject: [PATCH] Fix out of bounds access to COMP_WORDS It can happen that $cword equals to 0, so there is no $prev word in this case (Fixes Bug #559953) --- bash_completion |4 ++-- 1 files

Re: [Bash-completion-devel] A question about 9af6f3504e8c94e5ead187b7cd223bd481548957

2011-04-20 Thread Igor Murzov
Thank you, Ville for your reply. I have no questions anymore ) -- Igor ___ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel