Re: determine when user account created?

From: Ian Gregory (foo_at_bar.invalid)
Date: 10/28/04


Date: 28 Oct 2004 02:56:27 GMT

Dave Uhring wrote:
> On Wed, 27 Oct 2004 21:07:49 -0400, Barry Margolin wrote:
>
>> In article <pan.2004.10.28.00.52.33.589222@yahoo.com>,
>> Dave Uhring <daveuhring@yahoo.com> wrote:
>
>>> ~/.bashrc is not sourced at login so apparently it is not for *every*
>>> instance of shell invocation.
>>
>> OK, every subshell. Still, I don't think they should normally be linked
>> together -- there's stuff you only need to do at login time, not in
>> subshells. Often .bash_profile ends with "source .bashrc" to get that
>> script executed in the login shell as well.
>
> I find that maintaining one such file is enough work even it it costs a
> few microseconds on each invocation of xterm|dtterm. YMMV.

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

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.

I guess my milage does vary!

-- 
Ian Gregory
http://www.zenatode.org.uk/ian/


Relevant Pages

  • Re: determine when user account created?
    ... Dave Uhring wrote: ... >> script executed in the login shell as well. ... I don't want that to be executed by a subshell or it becomes ... the fact that symlinking .bashrc to .bash_profile (or the ...
    (comp.unix.solaris)
  • Re: bash strange
    ... I have fixed this problem myself, just make .bash_profile and .bashrc, ... these 2 files are used when bash starts up, and put the stuff in these ... .bash_profile used with login shell. ... .bashrc used with subshell ...
    (comp.os.minix)