Re: determine when user account created?

From: Dave Uhring (daveuhring_at_yahoo.com)
Date: 10/28/04


Date: Wed, 27 Oct 2004 22:13:37 -0500

On Thu, 28 Oct 2004 02:56:27 +0000, Ian Gregory wrote:

> In my .bash_profile I might for example have:
>
> PATH=$PATH:/mypath
>
> I don't want that to be executed by a subshell or it becomes
> $PATH:/mypath:/mypath

I *know* what I want my PATH to be and it is fully declared in ~/.bashrc
with no reference to some previously exported PATH, wherever that might
actually be. Where is your $PATH exported before ~/.bash_profile is
executed?

> OK, I guess that is no big deal either but it comes down to
> the fact that symlinking .bashrc to .bash_profile (or the
> other way round?) just seems ugly and wrong to me, and even
> if it was easier to maintain (which I don't accept) then I
> would still not do it.

Maintenance of one file is easier than maintenance of two files.

> I guess my milage does vary!

It's *your* home directory :-)



Relevant Pages

  • Re: determine when user account created?
    ... >> I don't want that to be executed by a subshell or it becomes ... > with no reference to some previously exported PATH, ... > Maintenance of one file is easier than maintenance of two files. ...
    (comp.sys.sun.admin)
  • Re: PID of subshell forked with ()
    ... Dan Mercer wrote: ... There is no builtin way to get the pid of a subshell BECAUSE ... >Doesn't anyone teach DESIGN anymore? ... maintenance. ...
    (comp.unix.shell)