"Randy.Dunlap" [off-list ref] writes:
On Mon, 14 Aug 2006 15:10:27 -0700 Junio C Hamano wrote:
quoted
I see many documents floating on the web that call CDPATH "an
environment variable". It is a disease X-<.
What is CDPATH then? (other than trouble/disease)
I find it useful (usually :).
What I mean is that it belongs to the "set" command output but
should not be in "printenv" command output.
It is a useful shell variable to help interactive use, but it
causes trouble without benefit when exported to the environment
(breaks scripts you invoke without you knowing). Calling such
a shell variable "an environment variable" is spreading trouble.