Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: <1052749853 DOT 3ebfb01d553c8 AT webmail DOT imag DOT fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/