bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash has the current working directory in PATH by default


From: Chris F.A. Johnson
Subject: Re: Bash has the current working directory in PATH by default
Date: 23 May 2004 01:03:09 GMT
User-agent: slrn/0.9.8.0 (Linux)

On 2004-05-22, Christian Biere wrote:
[snip]
> Description:
>
>   Bash (unlike any other shell I've ever used) puts a dot into the default
>   PATH value. AFAIR, this has always been considered bad practice and at
>   least on a multi-user system it can easily turn a (normally harmless)
>   typo into a nightmare. In my experience many people are not aware that
>   Bash uses such a default and it's usually discovered after things went
>   wrong.

man bash:

   Shell Variables
       The following variables are set by the shell:
    ...........

       PATH   The search path for commands.  It is a colon-separated  list  of
              directories  in  which the shell looks for commands (see COMMAND
              EXECUTION below).  The default path is system-dependent, and  is
              set  by  the administrator who installs bash.  A common value is
              ``/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:.''.


-- 
        Chris F.A. Johnson                      http://cfaj.freeshell.org
        =================================================================
                Everything in moderation -- including moderation




reply via email to

[Prev in Thread] Current Thread [Next in Thread]