paths [-c] |
-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 |
$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 ...
synopsis: | handle_options "$@" |
description: | handle the options. |
globals used: | Myname Version |
globals set: | args |