Package : perl-Complete-Bash > RPM : perl-Complete-Bash-0.335.0-1.mga8.src.rpm
Basic items
Name | perl-Complete-Bash |
Version | 0.335.0 |
Release | 1.mga8 |
URL | https://metacpan.org/release/Complete-Bash |
Group | Development/Perl |
Summary | Completion module for bash shell |
Size | 37KB |
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 8 |
Media name | core-release |
Media arch | aarch64 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2020-06-28 03:44:10 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |