delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/24/13:30:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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, 24 Oct 2005 13:29:54 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: zsh as login shell
In-Reply-To: <12jp8mrgs23ef$.1b20pqkmkl3w2.dlg@40tude.net>
Message-ID: <Pine.GSO.4.63.0510241324290.27005@slinky.cs.nyu.edu>
References: <12jp8mrgs23ef$.1b20pqkmkl3w2 DOT dlg AT 40tude DOT net>
MIME-Version: 1.0

On Mon, 24 Oct 2005, Thorsten Kampe wrote:

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

Thanks for the clarification, Thorsten.  As I don't know anything about
using zsh, I was suggesting a way of modifying cygwin.bat appropriately.

The above method could be used for shells that don't understand --login
(e.g., ash) or those where using the --login flag is inconvenient (e.g.,
when you want to pass more options to a tcsh login shell).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019