Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Thorsten Kampe <thorsten@thorstenkampe.de>
Subject:  Re: zsh as login shell
Date:  Mon, 24 Oct 2005 18:05:29 +0100
Lines: 21
Message-ID:  <12jp8mrgs23ef$.1b20pqkmkl3w2.dlg@40tude.net>
References:  <6F0CB04509C11D46A54232E852E390AC44B951@MCHP7R6A.ww002.siemens.net> <Pine.GSO.4.63.0510241115540.27005@slinky.cs.nyu.edu>
Mime-Version:  1.0
Content-Type:  text/plain; charset="us-ascii"
Content-Transfer-Encoding:  7bit
User-Agent: 40tude_Dialog/2.0.15.1
X-IsSubscribed: yes

* Igor Pechtchanski (2005-10-24 16:36 +0100)
> On Mon, 24 Oct 2005, Com MN PG P E B Consultant 3 wrote:
>> I would like to have on my Windoze desktop an Icon for zsh running under
>> Cygwin...
>> [snip]
>> Zsh considers itself a login shell iff it is called under a name
>> starting with a dash.
>> [snip]
>> Another possibility would be to execute a shell script using bash and in
>> this script do an
>>
>>   exec -a -zsh zsh -I
>>
>> But maybe someone knows a better way to do this?
> 
> The latter sounds like the best solution.  You could do it directly from
> the batch file by using
> 
> bash -c 'exec -l /usr/bin/zsh -i'

zsh perfectly knows -l/--login. It's the "-i" that's not needed


--
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/

