Skip to content

Modify MANPATH

The MANPATH is the path used to search for manual pages using man.

Usage

manPathConfigure [ --help ] [ --first ] [ --last ] [ path ]

Modify the MANPATH environment variable to add a path.

Arguments

  • --help - Flag. Optional. Display this help.
  • --first - Flag. Optional. Place any paths after this flag first in the list
  • --last - Flag. Optional. Place any paths after this flag last in the list. Default.
  • path - the path to be added to the MANPATH environment

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

Usage

manPathRemove [ --help ] path

Remove a path from the MANPATH environment variable

Arguments

  • --help - Flag. Optional. Display this help.
  • path - Directory. Required. The path to be removed from the MANPATH environment

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

Usage

manPathCleanDuplicates [ --help ]

Cleans the MANPATH and removes non-directory entries and duplicates Maintains ordering.

Arguments

  • --help - Flag. Optional. Display this help.

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error