From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24548 invoked from network); 30 Aug 2005 17:56:14 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Aug 2005 17:56:14 -0000 Received: (qmail 49933 invoked from network); 30 Aug 2005 17:56:07 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Aug 2005 17:56:07 -0000 Received: (qmail 1658 invoked by alias); 30 Aug 2005 17:56:01 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9358 Received: (qmail 1646 invoked from network); 30 Aug 2005 17:56:00 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 30 Aug 2005 17:56:00 -0000 Received: (qmail 48895 invoked from network); 30 Aug 2005 17:56:00 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 30 Aug 2005 17:55:54 -0000 Received: from 212.red-80-35-44.pooles.rima-tde.net ([80.35.44.212]:32775 helo=localhost) by ns9.hostinglmi.net with esmtpa (Exim 4.52) id 1EAAKp-0007LO-0H; Tue, 30 Aug 2005 19:55:49 +0200 Date: Tue, 30 Aug 2005 19:59:38 +0200 From: DervishD To: Deliverable Mail Cc: zsh-users@sunsite.dk Subject: Re: startup Message-ID: <20050830175938.GA79@DervishD> Mail-Followup-To: Deliverable Mail , zsh-users@sunsite.dk References: <7c737f30050830102367dfccb@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7c737f30050830102367dfccb@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Hi Alexy :) * Deliverable Mail dixit: > I have subtle problems running programs under gdb since I switched > to zsh and configured a lot of aliases and zsh-specific things. What kind of problems? > For some reason, the examples .zshrc's I see do not distinguish > between login shell and non-login one... The zshrc and .zshrc files are read for ALL interactive shells, no matter if they are login shells or not. If you want to do things only for login shells, do them in zprofile and .zprofile files (and zlogin and .zlogin, of course). > How does zsh differentiates between them Do you mean between a login shell and a not login shell? Well, if zsh is invoked as "/bin/zsh -l" then it is a login shell, and if the first character of the invocation name is '-' (for example, the /bin/login program exec()'s the shell as -/bin/zsh). > and what happens when gdb starts a process when run under zsh (does it > even run zsh, or /bin/sh, and how do they interact)?... They don't interact except if some environment variable affects the behaviour of gdb, or maybe some tty setting. zsh will fork&exec gdb, which in turn forks+exec+ptraces the debugged program (AFAIK). Please, tell us (or better, since this doesn't seem to be zsh-related, just tell *me* in private) which kind of problem do you have when debugging programs and we look after a solution ;) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 | http://www.dervishd.net http://www.pleyades.net & http://www.gotesdelluna.net It's my PC and I'll cry if I want to...