| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-0.9 required=5.0 tests=AWL,BAYES_05,T_RP_MATCHES_RCVD |
| X-Spam-Check-By: | sourceware.org |
| MIME-Version: | 1.0 |
| Subject: | Env variable USER |
| Date: | Thu, 23 Feb 2012 14:22:23 +0100 |
| Message-ID: | <6BFA9AF2C7556E42AFF3F187ECAB07B802DAF257@bespdc01.mediaxim.local> |
| From: | "Michel Bardiaux" <MBardiaux AT mediaxim DOT be> |
| To: | <cygwin AT cygwin DOT com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q1NDMrkg018129 |
It seems that my latest frenzy of setups (the ones that first screwed
up, then failed to fix, then at last fixed, coreutils) had some nasty
side effects. The first I see is that USER is no longer defined in the
environment, at least for bash in mintty. Quite likely one of the bash
config files in /etc that is supposed to set it up (at least I assume
supposed to!), has been damaged, but has not been rebuilt because setup
considers it a "customized" file.
Note that I am 100% sure USER *was* set about 1 week ago, since an app
that worked then, now crashes because getenv("USER") return NULL.
Hence, 2 (related) questions:
1. Is USER supposed to be set?
2. If yes, by what script or process?
Tia
--
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 |