Skip Menu |

This queue is for tickets about the Complete-Tcsh CPAN distribution.

Report information
The Basics
Id: 131190
Status: resolved
Priority: 0/
Queue: Complete-Tcsh

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Mistake in example?
This example doesn't seem right. Should `cat mycompleter` be `cat foo-complete`? % cat mycompleter #!/usr/bin/perl use Complete::Tcsh qw(parse_cmdline format_completion); use Complete::Util qw(complete_array_elem); my ($words, $cword) = parse_cmdline(); my $res = complete_array_elem(array=>[qw/--help --verbose --version/], word=>$words->[$cword]); print format_completion($res); % complete -C foo-complete foo % foo --v<Tab> --verbose --version
You're right. The example in Synopsis contains some copy-paste mistake. Fixed in 0.030. Thanks. On Tue, 17 Dec 2019 10:56:18 GMT, TOBYINK wrote: Show quoted text
> This example doesn't seem right. Should `cat mycompleter` be `cat foo- > complete`? > > > % cat mycompleter > #!/usr/bin/perl > use Complete::Tcsh qw(parse_cmdline format_completion); > use Complete::Util qw(complete_array_elem); > my ($words, $cword) = parse_cmdline(); > my $res = complete_array_elem(array=>[qw/--help --verbose --version/], > word=>$words->[$cword]); > print format_completion($res); > > % complete -C foo-complete foo > % foo --v<Tab> > --verbose --version