Does /etc/profile need to set MANPATH?

Corinna Vinschen corinna-cygwin@cygwin.com
Thu May 15 07:56:00 GMT 2014


On May 14 18:52, Achim Gratz wrote:
> Corinna Vinschen writes:
> > Yes, this might be better discussed in cygwin-apps.  I guess the setting
> > of MANPATH is mainly historical.
> 
> I'd be happy to not set MANPATH in /etc/profile if we no longer need it
> for the standard installation.

I'm wondering if setting MANPATH was really ever required for the old
man either.  In a tcsh environment, MANPATH is not set by default.
If you install the openssl package, MANPATH is set like this (in
/etc/profile.d/openssh.csh):

  if ( ! $?MANPATH ) setenv MANPATH ""
  setenv MANPATH "${MANPATH}:/usr/ssl/man"

which results in:

  $ echo $MANPATH
  :/usr/ssl/man

I have neither problems to see the man pages in the default paths nor
problems to see the openssl man pages.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140515/aa8659aa/attachment.sig>


More information about the Cygwin mailing list