Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <39EE128A.515A147E@redhat.com> Date: Wed, 18 Oct 2000 23:13:46 +0200 From: Corinna Vinschen Reply-To: cygwin X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-SMP i686) X-Accept-Language: de, en MIME-Version: 1.0 To: cygwin Subject: Re: sh References: <20001018205231 DOT 10237 DOT qmail AT web115 DOT yahoomail DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Earnie Boyd wrote: > --- Corinna Vinschen wrote: > > I don't understand the problem here. ash only checks for the first > > character of argv[0] being a '-' character to read the profiles. > > I copied sh.exe to -sh.exe as well to run ash as login shell on a > > NT 3.51 system on which bash crashed for some reason. > > > > Ok. I was basing my opinions on what Bob stated he experienced and previous > versions of other shells that check for sh in argv[0]. Are you saying that > copying sh.exe to -sh.exe and then executing -sh works to trigger login > conditions in ash? Yes. Login conditions for ash means reading /etc/profile and ./.profile. Note that directory ".". ash doesn't change to $HOME by itself so it has to be done by the parent process or in /etc/profile. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT sources DOT redhat DOT com Red Hat, Inc. mailto:vinschen AT redhat DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com