From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27455 invoked by alias); 19 Nov 2014 16:20:21 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19412 Received: (qmail 17432 invoked from network); 19 Nov 2014 16:20:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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== X-Received: by 10.180.20.163 with SMTP id o3mr15329574wie.12.1416414014158; Wed, 19 Nov 2014 08:20:14 -0800 (PST) Date: Wed, 19 Nov 2014 16:20:12 +0000 From: Stephane Chazelas To: zsh-users@zsh.org Subject: Re: passing a zsh option when opening an xterm Message-ID: <20141119162012.GA4883@chaz.gmail.com> Mail-Followup-To: zsh-users@zsh.org References: <20141114122739.GA24113__32490.9376482994$1415968833$gmane$org@apartia.fr> <20141114143744.GA4054@chaz.gmail.com> <20141119132834.GA27323__40854.0799552158$1416403898$gmane$org@apartia.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141119132834.GA27323__40854.0799552158$1416403898$gmane$org@apartia.fr> User-Agent: Mutt/1.5.21 (2010-09-15) 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