delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/24/17:46:58

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 14:41:23 -0700 (PDT)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: Com MN PG P E B Consultant 3 <mn-pg-p-e-b-consultant-3 DOT com AT siemens DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: zsh as login shell
In-Reply-To: <6F0CB04509C11D46A54232E852E390AC44B951@MCHP7R6A.ww002.siemens.net>
Message-ID: <Pine.LNX.4.60.0510241436420.5013@gremlin.fruitbat.org>
References: <6F0CB04509C11D46A54232E852E390AC44B951 AT MCHP7R6A DOT ww002 DOT siemens DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes

On Mon, 24 Oct 2005, Com MN PG P E B Consultant 3 wrote:

Greetings, Ronald,

> I would like to have on my Windoze desktop an Icon for zsh running under
>
> Cygwin, similar to the standard Cygwin Icon which runs a bash login
> shell, so that I can choose whether to get a window using bash or using
> zsh.

Use mkzsh to do this.  For help, type 'mkzsh --help'

eg:

mkzsh --desktop

> It works kind of, but I can't get zsh executed as login shell. The BAT
> file invoking the bash login shell calls bash using
>
>  bash --login -i

See the '-l' option of zsh in the manpages.

eg:

zsh -l

> but zsh has no equivalent to the --login option, so I just use
>
>  zsh -i
>
> which makes the shell interactive, but not login. Zsh considers itself a
> login
> shell iff it is called under a name starting with a dash.
>
> Is there an elegant solution to this problem? Of course I could
>
>  cp -- zsh -zsh
>
> and call -zsh, but I would have then to redo this everytime I update zsh
> to a
> newer version. 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?
>
> Ronald
> --
> Ronald Fischer <mn-pg-p-e-b-consultant-3 DOT com AT siemens DOT com>

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
 	"Cats are just autistic Dogs" -- Dr. Tony Attwood

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