This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /etc/profile optimization and correctness


On Mon, Nov 29, 2010 at 01:23:01PM -0800, Daniel Colascione wrote:
>On 11/29/2010 10:39 AM, Ken Brown wrote:
>>On 11/29/2010 8:22 AM, Daniel Colascione wrote:
>>>Starting a login shell on my system takes a painfully long time, mostly
>>>because fork() is pretty slow on WOW6432 systems.  I've taken a look at
>>>the shell initialization routines and identified some potential
>>>savings:
>>>
>>>- Can't we use USERNAME to set USER instead of running `id -un`?
>>
>>You can't rely on USERNAME.  For example, if I login via ssh using
>>pubkey authentication, USERNAME is set to SYSTEM on my machine.
>>
>
>Works fine for me.

Nevertheless, making /etc/profile rely on a user-settable environment
variable is still a bad idea.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]