delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <20000913133956.8156.qmail@web118.yahoomail.com> |
Date: | Wed, 13 Sep 2000 06:39:56 -0700 (PDT) |
From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
Subject: | Re: set HOME environment |
To: | Guansong Zhang <guansong AT hotmail DOT com>, cygwin AT sources DOT redhat DOT com |
MIME-Version: | 1.0 |
--- Guansong Zhang <guansong AT hotmail DOT com> wrote: > Hi, > > I used to used the following line to set HOME and CYGWIN in bash.bat > > set HOME=%USERPROFILE% > set CYGWIN=tty ntea > > So I don't need to use mouse click to change env > > I don't know when bash.bat is changed to use --login -i > > but it will be a problem if my system dir is not C: it seems bash can not > set the HOME in this case. > > I modify the bat to this, (in this case e: is my system drive) > > @echo off > > set HOME=%USERPROFILE% > set CYGWIN=tty ntea > > rem e: > rem chdir \cygwin\bin > > chdir /d %USERPROFILE% > > e:\cygwin\bin\bash --login -i > > I still get > > [: too many arguments > bash: cd: /cygdrive/e/Documents: No such file or directory > > As error message. but everything else seems OK. Hope no one need to do this > change next time. > This appears to be the problem of having white space in your variables. Make sure the values are quoted. See the archives for further discussions. Is this FAQed yet? Cheers, ===== --- <http://earniesystems.safeshopper.com> --- Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com> __Cygwin: POSIX on Windows__ Cygwin Newbies: <http://gw32.freeyellow.com/> __Minimalist GNU for Windows__ Mingw32 List: <http://www.egroups.com/group/mingw32/> Mingw Home: <http://www.mingw.org/> __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |