This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]