zsh as login shell

Thorsten Kampe thorsten@thorstenkampe.de
Mon Oct 24 17:11:00 GMT 2005

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

More information about the Cygwin mailing list