Acme-CPANModules-Parse-UnixShellCommandLine

 view release on metacpan or  search on metacpan

lib/Acme/CPANModules/Parse/UnixShellCommandLine.pm  view on Meta::CPAN


our $LIST = {
    summary => "List of modules that parse command-line like Unix shells",
    description => <<'_',

Sometimes you need to parse a Unix shell command-line string, e.g. when you want
to break it into "words".

In general I recommend <pm:Text::ParseWords> as it is a core module. If you want
a little more speed, try <pm:Parse::CommandLine::Regexp> (see reference to
benchmark in See Also).

_
    entries => [
        {
            module=>'Complete::Bash',
            description => <<'_',

Its `parse_cmdline()` function can break a command-line string into words. This
function is geared for tab completion, so by default it also breaks on some
other word-breaking characters like "=", "@", and so on. Probably not what you
want generally, unless you are working with tab completion.

_
        },
        {
            module=>'Complete::Zsh',
        },
        {
            module=>'Complete::Fish',
        },
        {
            module=>'Complete::Tcsh',
        },
        {
            module=>'Text::ParseWords',
            description => <<'_',

This core module can split string into words with customizable quoting character
and support for escaping using backslash. Its `shellwords()` function is
suitable for breaking command-line string into words.

_
        },
        {
            module=>'Parse::CommandLine',
        },
        {
            module=>'Parse::CommandLine::Regexp',
        },
    ],
};

1;
# ABSTRACT: List of modules that parse command-line like Unix shells

__END__

=pod

=encoding UTF-8

=head1 NAME

Acme::CPANModules::Parse::UnixShellCommandLine - List of modules that parse command-line like Unix shells

=head1 VERSION

This document describes version 0.003 of Acme::CPANModules::Parse::UnixShellCommandLine (from Perl distribution Acme-CPANModules-Parse-UnixShellCommandLine), released on 2023-10-31.

=head1 DESCRIPTION

Sometimes you need to parse a Unix shell command-line string, e.g. when you want
to break it into "words".

In general I recommend L<Text::ParseWords> as it is a core module. If you want
a little more speed, try L<Parse::CommandLine::Regexp> (see reference to
benchmark in See Also).

=head1 ACME::CPANMODULES ENTRIES

=over

=item L<Complete::Bash>

Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>

Its C<parse_cmdline()> function can break a command-line string into words. This
function is geared for tab completion, so by default it also breaks on some
other word-breaking characters like "=", "@", and so on. Probably not what you
want generally, unless you are working with tab completion.


=item L<Complete::Zsh>

Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>

=item L<Complete::Fish>

Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>

=item L<Complete::Tcsh>

Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>

=item L<Text::ParseWords>

Author: L<NEILB|https://metacpan.org/author/NEILB>

This core module can split string into words with customizable quoting character
and support for escaping using backslash. Its C<shellwords()> function is
suitable for breaking command-line string into words.


=item L<Parse::CommandLine>

Author: L<SONGMU|https://metacpan.org/author/SONGMU>

=item L<Parse::CommandLine::Regexp>

Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>



( run in 1.447 second using v1.01-cache-2.11-cpan-4991d5b9bd9 )