From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id D9E7129D98 for ; Mon, 3 Jun 2024 17:34:36 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1717428876; b=M/5EHVL9QnqDMZRBu7WTQsrfCqZDWYlgzyDDwZUlGARLJvTY5t5i5ivWPTrSAlV/3zuiVqGUno ovPjm5jUATJ+/aitF/R02t+LagREySdduMJG3K9gLGIvC2litdNHXFSd5f431HyA4ULQSCr8s/ J+bUP9aRaF7Dlyi+HN44yy2Zu0aNESJyZL30xsGNCvQaDNFQ+0qprbjxnHlkcntM0nVbA/Vp/9 RuiHdwe4H5vFfuEyEvDwczfCRAdXZFaYL1fZGp/WLBSeEUjzX/kw5TJBlYHwXE+4RDfIR/ZDaE padYOnonojhm7fx6Mlgr4fNRllsog1WQ1YFFluRTsj40Uw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f179.google.com) smtp.remote-ip=209.85.208.179; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1717428876; bh=HxQed6JoSpVI7jrMpp0Ri9hILxm2BRWISl+HZI3kEPg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=CFBDyXiZdJABYApJ2xBw5cMcnWU0w995icussAlDCM3RwzyAxRGwQbK0wYxtO0EPHc6L/iBQuc EPsCOS+ugJxBRTC7Ck+u9WaTy9/Qa+nRioiJ6eP3huzE0YZLcr5Phy9KtunWpkyVMJH7qeX7gM LhB6extz/9NSw7j5YHSp2weiHzon+UrO7woPsDp3kEujXvRCC7JpC35LUbh7DdTTGGF4baCTfx sEX+YqD+IdhzD6Ze6V1Xth3udOGEOMjtVvViGKqc2iCfzRY6I4aSOpcw/p2KJrFgRLi/djYczL NhjiMEC6NzNMMa9HgEKz2xfQX6eGxsPMBthuWCCq1f/94A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ThVympHeYihVBCrqxWzgDSylJNhWQ+BE5DRDqw2wYwA=; b=JqEQs/g3eE+FfAYNNga0flkmDc OEGBFtyZiHl8UanydwCx3EjUxD3GaMhQi3vdSAFtpxhEgKWlAcCOXrhXmTJHS40vgrBKWRSQSKCfM Qa13HD6ha3f5/7q5+fIbVIsKffFTMia1YqyK5UUua3iYJyfqE1zoV958nIlZIUhm+4zJhYTDbMlbh fQb7F7ipcxa3gPdWl6I9TX/JBcMOUdJBzDSiRBS0bVFCd+vyuDOdTRPzc9GDRkQMpxW4cRCLtKwYX kskMZChI455Y866+se5BboxrPGii40/1OEGTLN1D8VGjsrVn96Q9pZA06iUXkfbWUjx6pDcjnuWk0 DEqx9qOA==; Received: by zero.zsh.org with local id 1sE9hk-0009TS-92; Mon, 03 Jun 2024 15:34:36 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f179.google.com) smtp.remote-ip=209.85.208.179; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f179.google.com ([209.85.208.179]:55623) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1sE9h7-0008jk-HS; Mon, 03 Jun 2024 15:33:59 +0000 Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2eab0bc74cdso13297191fa.3 for ; Mon, 03 Jun 2024 08:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717428836; x=1718033636; darn=zsh.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=ThVympHeYihVBCrqxWzgDSylJNhWQ+BE5DRDqw2wYwA=; b=MTDLrnSPwSiIzc1e+IGaU3o/Z4j9GqyRnlX1DY0gXAPbJeKcUzd62gjCq5VtVNccD5 fx17CaIryaLB2xbCwlgZyXpHA+LG7JB1V8IAdrANAAyfcWhf6TF9m7VVsKK0vzJKdR6F n1FE6FR4N2LRKr6z2PrddM0b/TXrYmc/n8UjDRnsFNZZaVq0gp0Sdh77dJKdq6tAVE2e qz8/oajRWZdPfOxCso5mLpkCZ8jvhqVksmGFrbgw1UeJMLUV9x1qJnlJ356/+yjNq7R0 dKemA2Dew+9jtC5EK1FkOEPZoGSiy80CpnWPlYDoywQCNnfmPj+u3IvdjqGi4EJTtMqO dISg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717428836; x=1718033636; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ThVympHeYihVBCrqxWzgDSylJNhWQ+BE5DRDqw2wYwA=; b=LBL5eTubP9DD20lXFhvJgoTrZmtQCQjYBIwUHvKd3+NSU1YXKgW4It1Isbmc8nVThV g37MNWIQL9uMDrhRVLRNrfiLyt79GOgR00KH1KSviV2emO+4+/MKsdKyeXrEJkQmIyKe /3W06JmXKjRL55mrJUcgIE06zBMg9PTujumgZsBRFFW/0rVT3vDEFSbFXrJ7PT+FH+/w Qgp6F0NwLGkLUeMFjjFnJ13Jb8gJg1LtmxVesl4H+OMCfKbQLIb3vfRyBBxlTAWDaPe3 dEwzoFMYUmU586ePbtyp3Fh+tVT7Rq74Pm+AG84DYaCksDNoJuvUM8Am7VramvK1ClRg 19SQ== X-Gm-Message-State: AOJu0YzsOqLtZfYYvPBu0p/jWDp2CtKkfcTAEzmJHFFMLQLAxay2Dj4o 3ORAfrvOFK0OBXdhK0NQxZ4Da3m48QJbRp7P1LdVlt9Owx7Ft9hrAZHFW/XIVdg3RUfEbDaqoMs ytps6NPoqbiwsG9EWcDWyNqyDJv/DOQ== X-Google-Smtp-Source: AGHT+IHzj0nTspmglLcI/YEL/rm/jx5gjV3ytNFZHCpEJfeYTZcOQMNJGjV/IEpA4rJUupgw8xZg0fct3BAwiUZD928= X-Received: by 2002:a2e:be0f:0:b0:2e9:8418:1f5f with SMTP id 38308e7fff4ca-2ea950c842dmr67163971fa.6.1717428835916; Mon, 03 Jun 2024 08:33:55 -0700 (PDT) MIME-Version: 1.0 References: <2bb9cec5-1293-4103-a73c-fd2a190cb65d@eastlink.ca> In-Reply-To: From: "Mark J. Reed" Date: Mon, 3 Jun 2024 11:33:41 -0400 Message-ID: Subject: Re: exec To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="000000000000b125220619fe0f19" X-Seq: 29987 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --000000000000b125220619fe0f19 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Your shell is never the only process running on the computer. Certainly not if you're using a GUI; the terminal emulator is running, to carry what you type to the shell and what it outputs back to you. The window system is running, to display what the terminal emulator and other windows have to say and respond to the keyboard and mouse and so on. When the shell exits, the terminal may also (as I said, that's configurable), but there's no reason for everything else to. You can just fire up another terminal and keep going, or continue to interact with non-command-line applications like your web browser. In X11 setups back in the day, it wasn't uncommon for the *.xinitrc* or whatever startup file you use to end with something like *exec xterm*, so if *that particular instance* of *xterm* exited, then the whole window system went away with it. But that's not typical of modern systems. And even then the computer wouldn't shut down. You'd just be dropped back at your original shell on the console, or if you'd also *exec*'ed *xinit*, at a login prompt. On Mon, Jun 3, 2024 at 11:23=E2=80=AFAM Ray Andrews wrote: > > > On 2024-06-03 07:54, Mark J. Reed wrote: > > Exec has the same impact on the shell as exit - shell go bye bye - it > > just leaves another program in its place. > > So I see. So it's not just a question of a script removing itself from > memory at the point where control passes, it's 'exit' as we see. Still, > the question of who gets control is there -- the computer does not shut > off. But again, that question would be there anyway so 'exec' doesn't > make the question any more difficult. I guess as far as zsh is > concerned that's as much as can be said. > > > > --=20 Mark J. Reed --000000000000b125220619fe0f19 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Your shell is never the only process running on the c= omputer. Certainly not if you're using a GUI; the terminal emulator is = running, to carry what you type to the shell and what it outputs back to yo= u. The window system is running, to display what the terminal emulator and = other windows have to say and respond to the keyboard and mouse and so on.= =C2=A0 When the shell exits, the terminal may also (as I said, that's c= onfigurable), but there's no reason for everything else to. You can jus= t fire up another terminal and keep going, or continue to interact with non= -command-line applications like your web browser.

= In X11 setups back in the day, it wasn't uncommon for the .xinitrc or whatever startup file you use to end with something like=C2=A0exec= xterm,=C2=A0so if that particular instance of xterm=C2= =A0exited, then the whole window system went away with it. But that's n= ot typical of modern systems. And even then the computer wouldn't shut = down. You'd just be dropped back at your original shell on the console,= or if you'd also exec'ed xinit, at a login prompt.

On Mon, Jun 3, 2024 at 11:23=E2=80=AFAM Ray Andrews <rayandrews@eastlink.ca> wrote:


On 2024-06-03 07:54, Mark J. Reed wrote:
> =C2=A0Exec has the same impact on the shell as exit - shell go bye bye= - it
> just leaves another program in its place.

So I see.=C2=A0 So it's not just a question of a script removing itself= from
memory at the point where control passes, it's 'exit' as we see= .=C2=A0 Still,
the question of who gets control is there -- the computer does not shut off.=C2=A0 But again, that question would be there anyway so 'exec'= doesn't
make the question any more difficult.=C2=A0 I guess as far as zsh is
concerned that's as much as can be said.





--
Ma= rk J. Reed <mar= kjreed@gmail.com>
--000000000000b125220619fe0f19--