perl-App-pathed-0.07-alt1.noarch.rpm


Advertisement

Description

perl-App-pathed - munge the Bash PATH environment variable

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-App-pathed
Package version 0.07
Package release alt1
Package architecture noarch
Package type rpm
Installed size 29.70 KB
Download size 29.70 KB
Official Mirror ftp.altlinux.org
The Bash `PATH' environment variable contains a colon-separated list of paths.
Platforms other than UNIX might use a different separator; `pathed' uses the
default separator for the current OS. `pathed' - "path editor" - can split
the path, append, prepend or remove elements, remove duplicates and reassemble
it.
The result is then printed so you can assign it to the `PATH' variable. If
`--split' is used, each path element is printed on a separate line, so you can
iterate over them, for example.
The path elements can also be checked with `--check' to make sure that the
indicated paths are readable.
But `pathed' isn't just for the `PATH' variable. You can specify an
environment variable to use with the `--var' option, or just pass a value to
be used directly after the options.
The following command-line options are supported:
=over 4
=item `--append', `-a' `<path>'
Appends the given path to the list of path elements. This option can be
specified several times; the paths are appended in the given order.
=item `--prepend', `-p' `<path>'
Prepends the given path to the list of path elements. This option can be
specified several times; the paths are prepended in the given order. For
example:
$ pathed -p first -p second -p third
will result in `third:second:first:$PATH'.
=item `--delete', `-d' `<substr>'
Deletes those path elements which contain the given substring. This option can
be specified several times; the path elements are deleted in the given order.
When options are mixed, `--append' is processed first, then `--prepend', then
`--delete'.
=item `--unique', `-u'
Removes duplicate path elements.
=item `--split', `-s'
Prints each path element on its own line. If this option is not specified, the
path elements are printed on one line, joined by the default path separator as
reported by the Config manpage - usually a colon -, like you would normally specify the
`PATH' variable.
=item `--check', `-c'
Checks whether each path element is readable and prints warnings if necessary.
Does not check whether the path element is a directory because `pathed' can
also be used for specifying multiple files such as configuration files.
Warnings are printed only once per path element, even if that element occurs
several times in `PATH'.
When `--check' is used, the path is not printed. `--check' and `--split' are
mutually exclusive.
=item `--var', `-v' `<variable>'
Use the indicated environment variable.
=item `--sep', `-e' `<separator>'
The default path separator is what the Config manpage reports - usually a colon - but
with this option you can specify a different separator. It is used to split the
input path and to join the output path.
=item `--help', `-h'
Prints the synopsis.
=item `--man'
Prints the whole documentation.
=back

Alternatives

Package Version Architecture Repository
perl-App-pathed - - -

Requires

Name Value
/usr/share/perl5 -
perl(Config.pm) -
perl(Getopt/Long.pm) -
perl(Pod/Find.pm) -
perl(Pod/Usage.pm) -
perl-base >= 1:5.10.0
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(App/pathed.pm) = 0.070
perl-App-pathed = 0.07-alt1

Download

Type URL
Binary Package perl-App-pathed-0.07-alt1.noarch.rpm
Source Package perl-App-pathed-0.07-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-App-pathed rpm package:
    # sudo apt-get install perl-App-pathed

Files

Path
/usr/share/doc/perl-App-pathed-0.07/Changes
/usr/share/doc/perl-App-pathed-0.07/LICENSE
/usr/share/doc/perl-App-pathed-0.07/README
/usr/share/perl5/App/pathed.pm

See Also

Package Description
perl-App-pathed-scripts-0.07-alt1.noarch.rpm App-pathed scripts
perl-App-pause-FatPacked-0.52-alt1.noarch.rpm A CLI for PAUSE (fatpacked version)
perl-App-pause-FatPacked-scripts-0.52-alt1.noarch.rpm App-pause-FatPacked scripts
perl-App-pause-Unpacked-0.48-alt1.noarch.rpm A CLI for PAUSE (unpacked version)
perl-App-pause-Unpacked-scripts-0.48-alt1.noarch.rpm App-pause-Unpacked scripts
perl-App-perldolicious-0.011-alt1.noarch.rpm Mojolicious::Lite webapp that lets you search (with regexp) and display CPAN modules documentation
perl-App-perldolicious-scripts-0.011-alt1.noarch.rpm App-perldolicious scripts
perl-App-perlfind-2.07-alt1.noarch.rpm A more knowledgeable perldoc
perl-App-perlfind-scripts-2.07-alt1.noarch.rpm App-perlfind scripts
perl-App-perlhl-0.007-alt1.noarch.rpm application class for syntax highlighting Perl source code
perl-App-perlhl-scripts-0.007-alt1.noarch.rpm App-perlhl scripts
perl-App-perlminlint-0.22-alt1.noarch.rpm minimalistic lint for perl
perl-App-perlminlint-scripts-0.22-alt1.noarch.rpm App-perlminlint scripts
perl-App-perlmv-0.50-alt1.noarch.rpm Rename files using Perl code
perl-App-perlmv-u-0.005-alt1.noarch.rpm Rename files using Perl code, with undo/redo
Advertisement
Advertisement