zsh-users
 help / color / mirror / code / Atom feed
* startup
@ 2005-08-30 17:23 Deliverable Mail
  2005-08-30 17:59 ` startup DervishD
  0 siblings, 1 reply; 2+ messages in thread
From: Deliverable Mail @ 2005-08-30 17:23 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 540 bytes --]

I have subtle problems running programs under gdb since I switched to zsh 
and configured a lot of aliases and zsh-specific things. I wonder how do I 
debug it, -- if I start gdb under zsh, what's the startup sequence of the 
new process? For some reason, the examples .zshrc's I see do not distinguish 
between login shell and non-login one... How does zsh differentiates between 
them, 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)?...
 Cheers,
Alexy

[-- Attachment #2: Type: text/html, Size: 599 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: startup
  2005-08-30 17:23 startup Deliverable Mail
@ 2005-08-30 17:59 ` DervishD
  0 siblings, 0 replies; 2+ messages in thread
From: DervishD @ 2005-08-30 17:59 UTC (permalink / raw)
  To: Deliverable Mail; +Cc: zsh-users

    Hi Alexy :)

 * Deliverable Mail <deliverable@gmail.com> 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...


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-30 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-30 17:23 startup Deliverable Mail
2005-08-30 17:59 ` startup DervishD

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).