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 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: zsh as login shell Date: Mon, 24 Oct 2005 12:11:33 +0200 Message-ID: <6F0CB04509C11D46A54232E852E390AC44B951@MCHP7R6A.ww002.siemens.net> From: "Com MN PG P E B Consultant 3" To: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j9OABmes020425 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. 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 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 -- 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/