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, 4 Apr 2005 17:33:46 +1000 (EST) From: Luke Kendall Subject: Re: zsh startup oddity To: cygwin AT cygwin DOT com In-Reply-To: <20050404065813.38B0084C39@pessard.research.canon.com.au> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: <20050404073346.581FD84C39@pessard.research.canon.com.au> On 4 Apr, luke wrote: > > With Cygwin 1.5.13, zsh 4.2.4-1 and the simple shell invocation utility > > posted to this list on March 24 <4242381E DOT 2020008 AT endbracket DOT net> (which > > sets argv[0] to "-zsh"), zsh recognizes that it is a login shell and > > correctly sources .zprofile. > > Ah! Looks perfect! Thanks, Michael, we'll give that a try. At first I tried compiling with (gcc) -mno-cygwin, thinking it would be run from inside a Windows DOS environment, so wouldn't have access to cygwin, but that didn't compile. I tried then with -mno-win32 and that worked fine, though I don't understand how it found cygwin1.dll. Is the intent simply to copy shell.exe into /usr/bin? BTW, should you include a copyright and license term comment in shell.c? It would make me feel much more comfortable. I've tried it on my system, and it's working well. I'll get my zsh colleague to try it out soon. Thanks! luke -- 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/