paths list the current PATH, MANPATH and INFOPATH, marking doubles
doc generated from the script with gendoc
bash script, version=2.03

Synopsis

paths [-c]

Options

-h,--help
print this help and exit
-H,--Help
print full documentation via less and exit
-V,--version
print version and exit
-c,--color
Colorize duplicates

Description

paths displays the contents of $PATH, $MANPATH and $INFOPATH, listing each directory on a separate line and marking duplicates.

For example:

   $ paths
   PATH:
     /home/wybo/bin
     /local/bin
     /usr/local/texlive/2011/bin/i386-linux/
     /usr/local/sbin
     /usr/local/bin
     /usr/sbin
     /usr/bin
     /sbin
     /bin
     /usr/games
   MANPATH:
     ./man
     /local/man
     /usr/local/texlive/2011/texmf/doc/man
   INFOPATH:
     /usr/local/texlive/2011/texmf/doc/info

Directories that occur more than once in the path will be marked with asterisks, for example:

   $ PATH=/local/bin:$PATH paths
   PATH:
   **/local/bin
     /home/wybo/bin
   **/local/bin
     /usr/local/texlive/2011/bin/i386-linux/
     /usr/local/sbin
     ...

With the Red{-c} option, ANSI coloring wil be used to mark doubles, instead of asterisks:

   $ PATH=/local/bin:$PATH paths
   PATH:
     Red{/local/bin}
     /home/wybo/bin
     Red{/local/bin}
     /usr/local/texlive/2011/bin/i386-linux/
     /usr/local/sbin
     ...

Author

Wybo Dekker

Copyright

Released under the GNU General Public License

Functions used:


handle_options

synopsis:
handle_options "$@"
description:
handle the options.
globals used:
Myname Version
globals  set:
args