Re: zsh startup oddity

2005-04-07 Thread Luke Kendall
On 4 Apr, Christopher Faylor wrote: > The web page that you are referring to has this at the beginningr: > > This document deals with contributions to the Cygwin DLL and Cygwin > utilitites. Contributions to other packages contributed by Cygwin are > also welcome and some of

Re: zsh startup oddity

2005-04-06 Thread Luke Kendall
On 6 Apr, Peter A. Castro wrote: > > I like the sound of Michael's shell.c because you don't need a separate > > ..bat file to start up each different shell. > > I guess I don't understand how you are starting the shell, really. All > you need to do is change cygwin.bat to run 'zsh -l -

Re: zsh startup oddity

2005-04-06 Thread Peter A. Castro
On Mon, 4 Apr 2005, Luke Kendall wrote: On 1 Apr, Michael Wardle wrote: By what mechanism are you ensuring zsh is invoked as a login shell rather than a non-login shell? I think we were starting it via the cygwin shortcut (cygwin.bat), which as you have said, just runs bash --login. IIRC, the w

Re: zsh startup oddity

2005-04-04 Thread Christopher Faylor
On Tue, Apr 05, 2005 at 09:54:07AM +1000, Luke Kendall wrote: >On 4 Apr, Michael Wardle replied to: >> > BTW, should you include a copyright and license term comment in shell.c? >> > It would make me feel much more comfortable. >> >> It's a trivial program I wrote with reference to no othe

Re: zsh startup oddity

2005-04-04 Thread Luke Kendall
On 4 Apr, Michael Wardle replied to: > > BTW, should you include a copyright and license term comment in shell.c? > > It would make me feel much more comfortable. > > It's a trivial program I wrote with reference to no other programs. I > hereby release it into the public domain. Use i

Re: zsh startup oddity

2005-04-04 Thread Michael Wardle
On Mon, 2005-04-04 at 17:33 +1000, Luke Kendall wrote: > On 4 Apr, luke wrote: > > > With Cygwin 1.5.13, zsh 4.2.4-1 and the simple shell invocation utility > > > > > posted to this list on March 24 <[EMAIL PROTECTED]> (which > > > sets argv[0] to "-zsh"), zsh recognizes that it is a

Re: zsh startup oddity

2005-04-04 Thread Luke Kendall
On 4 Apr, luke wrote: > > With Cygwin 1.5.13, zsh 4.2.4-1 and the simple shell invocation utility > > posted to this list on March 24 <[EMAIL PROTECTED]> (which > > sets argv[0] to "-zsh"), zsh recognizes that it is a login shell and > > correctly sources .zprofile. > > Ah!

Re: zsh startup oddity

2005-04-04 Thread Michael Wardle
On Mon, 2005-04-04 at 16:58 +1000, Luke Kendall wrote: > On 1 Apr, Michael Wardle wrote: > > By what mechanism are you ensuring zsh is invoked as a login shell > > rather than a non-login shell? > > I think we were starting it via the cygwin shortcut (cygwin.bat), which > as you have said, j

Re: zsh startup oddity

2005-04-03 Thread Luke Kendall
On 1 Apr, Michael Wardle wrote: > By what mechanism are you ensuring zsh is invoked as a login shell > rather than a non-login shell? I think we were starting it via the cygwin shortcut (cygwin.bat), which as you have said, just runs bash --login. IIRC, the way we were starting zsh was via

Re: zsh startup oddity

2005-04-01 Thread Peter A. Castro
On Fri, 1 Apr 2005, Luke Kendall wrote: We found, on a release of Cygwin that's now probably almost a year old, that: If the /home directory had been created by Cygwin mkdir, and If the /etc/passwd shell specified shell to run was zsh, Then /etc/passwd would not run $HOME/.zprofile (I.e. a

Re: zsh startup oddity

2005-04-01 Thread Michael Wardle
Michael Wardle wrote: Luke Kendall wrote: (I.e. after starting a login zsh, you'd have to explicitly source ~/.zlogin or whatever). By what mechanism are you ensuring zsh is invoked as a login shell rather than a non-login shell? Does $- include "i"? Does setopt show that interactive is on? Whoo

Re: zsh startup oddity

2005-04-01 Thread Michael Wardle
Luke Kendall wrote: (I.e. after starting a login zsh, you'd have to explicitly source ~/.zlogin or whatever). By what mechanism are you ensuring zsh is invoked as a login shell rather than a non-login shell? Does $- include "i"? Does setopt show that interactive is on? With Cygwin 1.5.13, zsh 4.2

zsh startup oddity

2005-03-31 Thread Luke Kendall
We found, on a release of Cygwin that's now probably almost a year old, that: If the /home directory had been created by Cygwin mkdir, and If the /etc/passwd shell specified shell to run was zsh, Then /etc/passwd would not run $HOME/.zprofile (I.e. after starting a login zsh, you'd ha