| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| Date: | Mon, 12 May 2003 10:36:03 -0400 |
| From: | Christopher Faylor <cgf-rcm AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: howto change home path in /etc/passwd |
| Message-ID: | <20030512143603.GF23680@redhat.com> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <Pine DOT GSO DOT 4 DOT 44 DOT 0305121021020 DOT 393-100000 AT slinky DOT cs DOT nyu DOT edu> <1052749853 DOT 3ebfb01d553c8 AT webmail DOT imag DOT fr> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <1052749853.3ebfb01d553c8@webmail.imag.fr> |
| User-Agent: | Mutt/1.4.1i |
On Mon, May 12, 2003 at 04:30:53PM +0200, Sylvain DOT Ferriol AT imag DOT fr wrote: >OK but do you know how to get the username because in the cygwin terminal >echo $USER or echo $USERNAME works >but i 'm using a file install.bat which calls 'bash.exe instal.sh' >and in install.sh: > >echo $USER....nothing >echo $USERNAME....nothing > >any suggestions??? 1) calm down. 2) "id -un" provides the login name. You could do something like: USER="`id -un`" in your script cgf -- Please use the resources at cygwin.com rather than sending personal email. Special for spam email harvesters: send email to aaaspam AT sourceware DOT org and be permanently blocked from mailing lists at sources.redhat.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |