[Bash-completion-devel] [bash-completion-Bugs][313091] problems with directory and variable completion
Bugs item #313091, was changed at 2011-04-20 09:46 by Ville Skyttä You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=313091group_id=100114 Status: Closed Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: problems with directory and variable completion Distribution: None Originally reported in: None Milestone: None Status: Invalid Original bug number: Initial Comment: Anonymous message posted by a...@splitbrain.org Bash completion isn't working as expected/before. Variables are not handled correctly, sometime directories are not completed with a trailing slash. I'm using the ArchLinux package bash-completion 1.3-2 which should be built from the unmodified source of your latest release. Examples: * Using 'mv /etTAB' produces 'mv /etc ' but should produce 'mv /etc/'. It works correct with 'ls'. * Using 'ls $HOTAB' does nothing, but should complete to 'ls $HOME'. * Using 'unzip $HOME/myfiTAB' produces 'unzip \$HOME/myfile.zip' but should produce 'unzip $HOME/myfile.zip'. -- Comment By: Ville Skyttä (scop-guest) Date: 2011-04-20 12:45 Message: https://bbs.archlinux.org/viewtopic.php?id=113158 https://bugs.archlinux.org/task/22807 -- You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=313091group_id=100114 ___ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
[Bash-completion-devel] [bash-completion-Bugs][313091] problems with directory and variable completion
Bugs item #313091, was changed at 2011-04-20 06:46 by Andreas Gohr You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=313091group_id=100114 Status: Closed Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: problems with directory and variable completion Distribution: None Originally reported in: None Milestone: None Status: Invalid Original bug number: Initial Comment: Anonymous message posted by a...@splitbrain.org Bash completion isn't working as expected/before. Variables are not handled correctly, sometime directories are not completed with a trailing slash. I'm using the ArchLinux package bash-completion 1.3-2 which should be built from the unmodified source of your latest release. Examples: * Using 'mv /etTAB' produces 'mv /etc ' but should produce 'mv /etc/'. It works correct with 'ls'. * Using 'ls $HOTAB' does nothing, but should complete to 'ls $HOME'. * Using 'unzip $HOME/myfiTAB' produces 'unzip \$HOME/myfile.zip' but should produce 'unzip $HOME/myfile.zip'. -- Comment By: Andreas Gohr (splitbrain-guest) Date: 2011-04-20 11:11 Message: This is not the same bugs as https://bugs.archlinux.org/task/22807 It has different error behaviour and happens without any 3rd party completion scripts (I moved them out of /etc/bash_completion.d). -- Comment By: Ville Skyttä (scop-guest) Date: 2011-04-20 09:45 Message: https://bbs.archlinux.org/viewtopic.php?id=113158 https://bugs.archlinux.org/task/22807 -- You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=313091group_id=100114 ___ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
[Bash-completion-devel] [bash-completion-Bugs][313081] Variables do not support --prefix on ./compile
Bugs item #313081, was changed at 2011-04-12 22:33 by Ville Skyttä You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=313081group_id=100114 Status: Closed Priority: 3 Submitted By: Nobody (None) Assigned to: Ville Skyttä (scop-guest) Summary: Variables do not support --prefix on ./compile Distribution: --Distribution-Agnostic-- Originally reported in: None Milestone: 2.0 Status: Fix Committed Original bug number: Initial Comment: Anonymous message posted by morley.jonat...@gmail.com The variables BASH_COMPLETION, BASH_COMPLETION_DIR and BASH_COMPLETION_DIR do not automatically calculate their location and results in an ambiguous error message from sed. -- Comment By: Ville Skyttä (scop-guest) Date: 2011-04-20 15:21 Message: I suppose you mean ./configure, not ./compile? http://git.debian.org/?p=bash-completion/bash-completion.git;a=commitdiff;h=2738468ddef169b81f780fffdb86e88e684ad18c -- You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=313081group_id=100114 ___ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
[Bash-completion-devel] Bug#623479: bash-completion: p4 completion yields bash: _get_comp_words_by_ref(): `preprev': unknown argument
Package: bash-completion Version: 1:1.2-3 Severity: normal With the Perforce command line client p4 and bash-completion installed if I type: p4 edit TAB I get the following error: bash: _get_comp_words_by_ref(): `preprev': unknown argument It appears that this has been fixed in http://git.debian.org/?p=bash-completion/bash-completion.git;a=commitdiff;h=5eead0ebeecf7d3212df3fea9cfe0fa88b6d0274 but the fix didn't make it into squeeze. -- System Information: Debian Release: 6.0.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686-bigmem (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages bash-completion depends on: ii bash 4.1-3 The GNU Bourne Again SHell bash-completion recommends no packages. bash-completion suggests no packages. -- no debconf information ___ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
Re: [Bash-completion-devel] A question about 9af6f3504e8c94e5ead187b7cd223bd481548957
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
[Bash-completion-devel] Processed: Re: Bug#623479: bash-completion: p4 completion yields bash: _get_comp_words_by_ref(): `preprev': unknown argument
Processing commands for cont...@bugs.debian.org: fixed 623479 1:1.3-1 Bug #623479 [bash-completion] bash-completion: p4 completion yields bash: _get_comp_words_by_ref(): `preprev': unknown argument Bug Marked as fixed in versions bash-completion/1:1.3-1. tags 623479 squeeze Bug #623479 [bash-completion] bash-completion: p4 completion yields bash: _get_comp_words_by_ref(): `preprev': unknown argument Added tag(s) squeeze. thanks Stopping processing here. Please contact me if you need assistance. -- 623479: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=623479 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems ___ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
[Bash-completion-devel] [PATCH] Add completion scripts for fcoe-utils and open-lldp
This patch adds completion scripts for fcoeadm, fcoemon, lldpad and lldptool. They are very simple scripts, but do the trick. A shortcoming of the lldptool completion script is that it does not differentiate between options and commands. Signed-off-by: Robert Love robert.w.l...@intel.com --- completions/fcoeadm | 54 completions/fcoemon | 42 completions/lldpad | 50 ++ completions/lldptool | 74 ++ 4 files changed, 220 insertions(+), 0 deletions(-) create mode 100644 completions/fcoeadm create mode 100644 completions/fcoemon create mode 100644 completions/lldpad create mode 100644 completions/lldptool diff --git a/completions/fcoeadm b/completions/fcoeadm new file mode 100644 index 000..60f902d --- /dev/null +++ b/completions/fcoeadm @@ -0,0 +1,54 @@ +# bash completion for fcoeadm +# +## fcoeadm --help +#Version 1.0.17 +#Usage: fcoeadm +# [-c|--create] ethX +# [-d|--destroy] ethX +# [-r|--reset] ethX +# [-S|--Scan] ethX +# [-i|--interface] [ethX] +# [-t|--target] [ethX] +# [-l|--lun] [ethX] +# [-s|--stats] ethX [interval] +# [-v|--version] +# [-h|--help] + +# This file must be updated with any changes to, or additions to the options. + +# Could not get numeric value to work for the --stats interval +# Considered parsing output of --help to complete options + +have fcoeadm _fcoeadm_options() +{ +local cur prev prev_prev opts +COMPREPLY=() +cur=${COMP_WORDS[COMP_CWORD]} +prev=${COMP_WORDS[COMP_CWORD-1]} +opts=-c --create -d --destroy -r --reset -i --interface -t --target -l --lun -s --stats -S --Scan -h --help -v --version + +case ${prev} in + -c|--create|-d|--destroy|-r|--reset|-s|--stats|-S|--Scan|-i|--interface|-t|--target|-l|--lun) + _available_interfaces + return 0 + ;; +esac + +case ${cur} in +*) +COMPREPLY=( $(compgen -W ${opts} -- ${cur}) ) + return 0 + ;; +esac + +return 0 +} +complete -F _fcoeadm_options fcoeadm + +# Local variables: +# mode: shell-script +# sh-basic-offset: 4 +# sh-indent-comment: t +# indent-tabs-mode: nil +# End: +# ex: ts=4 sw=4 et filetype=sh \ No newline at end of file diff --git a/completions/fcoemon b/completions/fcoemon new file mode 100644 index 000..e9c7d6b --- /dev/null +++ b/completions/fcoemon @@ -0,0 +1,42 @@ +# bash completion for fcoemon +# + +## fcoemon --help +#Usage: fcoemon +# [-f|--foreground] +# [-d|--debug] +# [-s|--syslog] +# [-v|--version] +# [-h|--help] + +# This file must be updated with any changes to, or additions to the options. + +# Could not get numeric value to work for the --stats interval +# Considered parsing output of --help to complete options + +have fcoemon _fcoemon_options() +{ +local cur prev prev_prev opts +COMPREPLY=() +cur=${COMP_WORDS[COMP_CWORD]} +prev=${COMP_WORDS[COMP_CWORD-1]} +opts=-f --foreground -d --debug -s --syslog -v --version -h --help + +case ${cur} in +*) +COMPREPLY=( $(compgen -W ${opts} -- ${cur}) ) + return 0 + ;; +esac + +return 0 +} +complete -F _fcoemon_options fcoemon + +# Local variables: +# mode: shell-script +# sh-basic-offset: 4 +# sh-indent-comment: t +# indent-tabs-mode: nil +# End: +# ex: ts=4 sw=4 et filetype=sh \ No newline at end of file diff --git a/completions/lldpad b/completions/lldpad new file mode 100644 index 000..5e704f8 --- /dev/null +++ b/completions/lldpad @@ -0,0 +1,50 @@ +# bash completion for lldpad +# +## lldpad --help +# usage: lldpad [-hdksv] [-f configfile] +# options: +# -h show this usage +# -f use configfile instead of default +# -d run daemon in the background +# -k terminate current running lldpad +# -s remove lldpad state records +# -v show version +# -V set syslog level + +# This file must be updated with any changes to, or additions to the options. + +# Could not get numeric value to work for the --stats interval +# Considered parsing output of --help to complete options + +have lldpad _lldpad_options() +{ +local cur prev opts +COMPREPLY=() +cur=${COMP_WORDS[COMP_CWORD]} +prev=${COMP_WORDS[COMP_CWORD-1]} +opts=-h -f -d -k -s -v -V + +case ${cur} in +*) +COMPREPLY=( $(compgen -W ${opts} -- ${cur}) ) + ;; +esac + +case ${prev} in +-f) + _filedir + return 0 + ;; +esac + +return 0 +} +complete -F _lldpad_options lldpad + +# Local variables: +# mode: shell-script +# sh-basic-offset: 4 +# sh-indent-comment: t +# indent-tabs-mode: nil +# End: +# ex: ts=4 sw=4 et filetype=sh \ No newline at end of file diff --git a/completions/lldptool b/completions/lldptool new file mode 100644 index 000..3cb9a95 --- /dev/null +++ b/completions/lldptool @@ -0,0 +1,74 @@ +# bash completion for lldptool +#