| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| Date: | Mon, 29 Nov 2010 17:00:05 -0500 |
| From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: /etc/profile optimization and correctness |
| Message-ID: | <20101129220005.GA724@ednor.casa.cgf.cx> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <4CF3A930 DOT 40404 AT gmail DOT com> <4CF3F36B DOT 2010507 AT cornell DOT edu> <4CF419B5 DOT 5000408 AT gmail DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <4CF419B5.5000408@gmail.com> |
| User-Agent: | Mutt/1.5.20 (2009-06-14) |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |