Package : perl-Complete-Bash > RPM : perl-Complete-Bash-0.337.0-1.mga9.noarch.rpm
Basic items
InstallName | perl-Complete-Bash |
Version | 0.337.0 |
Release | 1.mga9 |
URL | https://metacpan.org/release/Complete-Bash |
Group | Development/Perl |
Summary | Completion module for bash shell |
Size | 152KB |
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 cauldron |
Media name | core-release |
Media arch | i586 |
Advanced items
Source RPM | perl-Complete-Bash-0.337.0-1.mga9.src.rpm |
Build time | 2022-12-08 03:16:26 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |