X-Spam-Check-By: sourceware.org Date: Thu, 18 Jan 2007 18:03:33 +1100 (EST) From: Luke Kendall Subject: Re: Login shell? To: cygwin In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: <20070118070334.23DA5842EF@pessard.research.canon.com.au> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On 17 Jan, Thorsten Kampe wrote: > * Luke Kendall (Wed, 17 Jan 2007 13:29:31 +1100 (EST)) > > I just want to confirm, that the traditional Cygwin way of achieving > > this same result is still to modify cygwin.bat on a PC-by-PC basis > > (assuming one user per PC), rather than to take the traditional Unix > > way and change the shell field in /etc/passwd? > > If you want to change your login shell you modify the passwd file. That's what we do, yes, because our modified cygwin.bat runs shell.exe, not bash. > cygwin.bat is just a target for the shortcut. But doesn't cygwin.bat run bash (not the shell specified in /etc/passwd)? > I think the zsh > maintainer has a batch file that creates links to start zsh instead of > bash. That sounds like it doesn't use /etc/passwd. Perhaps Michael should have called shell.exe login.exe :-) shell.c is only 60-odd lines long. Just to be quite explicit, here is our modified cygwin.bat: @echo off C: chdir C:\cygwin\bin shell It seems neater to me than the current approach. I'd like to propose making it an official part of Cygwin. But I can't do that since it's not my code: Michael Wardle wrote it (and submitted it to this list). 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/