Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: passing a zsh option when opening an xterm
- X-seq: zsh-users 19412
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: passing a zsh option when opening an xterm
- Date: Wed, 19 Nov 2014 16:20:12 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=eOwfyZRvMzR0vKMOWMK/AxwbjssSjgw+8QesiAAgdUI=; b=M4TWW1w2JIvyYK81Ar742p4IUVJ2hA1An+Q9XyAbbkuzYjkDNZyTfZwbloDXuJ9oZk U4jdZmUuUxJ97VzZocq/0fzLPPAguzf6u3YeSgmGA4d6laCw+xGZeks8ILoMX2R8ae9g 52+mq9w6JYsjjQaqjy0Pii9Dfzc49rcFTytxc+ga4GHHyN33HuXD1JjCcKTvKrQgbwQl naSusowjGDAujxZrLL5GHZEqDxYjBJSpsTAEAN4jyLh0rr706E8zbwNhMTyrT156G+68 ISkflJk1kjrvpn3GIbE7ixIwYfe3wvrMczW+J0xU1/g9fKMVxwKHgSarSTc3KWpk76n+ wDRQ==
- In-reply-to: <20141119132834.GA27323__40854.0799552158$1416403898$gmane$org@apartia.fr>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20141114122739.GA24113__32490.9376482994$1415968833$gmane$org@apartia.fr> <20141114143744.GA4054@chaz.gmail.com> <20141119132834.GA27323__40854.0799552158$1416403898$gmane$org@apartia.fr>
2014-11-19 14:28:34 +0100, Louis-David Mitterrand:
[...]
> apparently (( $(ps -o sid= -p $$) == $$ )) is always true, either when
> launching xterms from ~/.xession (those I want ignoreeof) or later
> through an openbox key mapping (not ignoreeof).
>
> What do you mean by session leader?
[...]
Sorry, I thought you wanted to avoid CTRL-D to kill *any*
terminal.
The session leader is typically the process that is invoked by
the terminal emulator.
(( $(ps -o sid= -p $$) == $$ ))
returns true for the zsh started by xterm, but not for other
zshs started in that xterm in other processes.
Note (in case that has not already been said) that you can start
xterm as:
xterm -e zsh -o ignoreeof
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author