Package : perl-Complete-Bash > RPM : perl-Complete-Bash-0.320.0-1.mga7.src.rpm
Basic items
Name | perl-Complete-Bash |
Version | 0.320.0 |
Release | 1.mga7 |
URL | http://search.cpan.org/dist/Complete-Bash |
Group | Development/Perl |
Summary | Completion module for bash shell |
Size | 34KB |
Arch | noarch |
License | GPL+ or Artistic |
Description
Bash allows completion to come from various sources. The simplest is from a
list of words ('-W'):
% complete -W "one two three four" somecmd
% somecmd t<Tab>
two three
Another source is from a bash function ('-F'). The function will receive
input in two variables: 'COMP_WORDS' (array, command-line chopped into
words) and 'COMP_CWORD' (integer, index to the array of words indicating
the cursor position). It must set an array variable 'COMPREPLY' that
contains the list of possible completion:
list of words ('-W'):
% complete -W "one two three four" somecmd
% somecmd t<Tab>
two three
Another source is from a bash function ('-F'). The function will receive
input in two variables: 'COMP_WORDS' (array, command-line chopped into
words) and 'COMP_CWORD' (integer, index to the array of words indicating
the cursor position). It must set an array variable 'COMPREPLY' that
contains the list of possible completion:
Media information
Distribution release | Mageia 7 |
Media name | core-release |
Media arch | i586 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2018-12-04 10:09:15 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |