"which" command does not expand "~" in path (base-files update needed)

Errol Smith errol@ros.com.au
Wed Sep 29 00:25:00 GMT 2004


At 01:31 AM 29/09/2004, Christopher Faylor wrote:
> > # Set MANPATH so it includes users' private man if it exists
> > # if [ -d ~/man ]; then
> >-#   MANPATH="~/man:${MANPATH}"
> >+#   MANPATH="${HOME}/man:${MANPATH}"
> > # fi
> >
> > # Set INFOPATH so it includes users' private info if it exists
> > # if [ -d ~/info ]; then
> >-#   INFOPATH="~/info:${INFOPATH}"
> >+#   INFOPATH="${HOME}/info:${INFOPATH}"
> > # fi
>
>I don't know if man or info deal properly with ~ but neither of the
>above should cause a problem for which.

  I realise they don't affect "which", but I was assuming they might affect 
man and/or info. See Igors message 
(http://www.cygwin.com/ml/cygwin/2004-09/msg01565.html) which seems to 
confirm my suspicions. Also, it was simply for consistency (no point doing 
an assignment one way on one line & another way on another without a good 
reason).

E
   


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list