Re: determine when user account created?

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


Date: 28 Oct 2004 04:20:43 GMT

Dave Uhring wrote:
> 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?

It could be done in /etc/profile, the standard place where
bash looks first (my above example was hypothetical).

>> 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 have some commands in one file and some in another whereas you
have them all in one. However, when I want to make a change I only
need to edit the appropriate one - it is not like I have to keep
them synced or anything. When I set up a new machine I might have
to copy both files over whereas you would only have to copy one
but you would *also* have to create the symlink.

So I don't think the maintenance issue is at all clear cut but
I don't want to follow up again so I will just relent and say
that your way may be marginally easier:-)

>> I guess my milage does vary!
>
> It's *your* home directory :-)

An Englishman's home directory is his castle:-)

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


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, ... > other way round?) ... Maintenance of one file is easier than maintenance of two files. ...
    (comp.sys.sun.admin)
  • Re: Overheard on the scanner
    ... but so far this hasn't included space stations. ... *anything* in space that requires much maintenance. ... which reference other past messages, which reference yet others, ad ... mentions other message-ids, as yours typically do, Google Groups ...
    (rec.arts.sf.fandom)
  • Trying to determine 3rd party component vendor
    ... I have a couple of missing units from a project we've just taken over ... maintenance of. ... During our investigation into the tools and 3rd party components we need, ... collection but we cannot find any reference to these units on ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Overheard on the scanner
    ... *anything* in space that requires much maintenance. ... Perhaps it escaped your notice that that "permanent" space station ... which reference other past messages, which reference yet others, ad ... mentions other message-ids, as yours typically do, Google Groups ...
    (rec.arts.sf.fandom)
  • 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)