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.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,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 1A5DE2919E for ; Mon, 3 Jun 2024 16:11:17 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1717423877; b=sruhODxNj+XFYQ0eVx2y30t1SWTOePiv7kzrw1fcOJq68UVeKtmVsKQ04i1u+cTQekFYqsoKAo /0VgQxGvrtslWndcTedseyX8MpzlU4M+z8xlz+JqqdVMAwiCJy4lGpD/eWNWiEKR1kOQlaT5pK Xe5c52i5enVmuS0/0i/Pdo/djGSFor4+cBqQfDTcW6aCcCIJL4+xCwxAQ3f18RcSHEYwB27WtL pOj0Bs1GSQsOcWtEqXjDu8xj2riS4dKnsfOCHjBTAhc2aLeSP6rpzDQl4CT3muJNaqkPhjMH2X DM+ggqjWmQ8Ltc1kSWqeDPJX2Z6HVzsaj6CZ2bkMEnG/vw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1717423877; bh=6Ih9MluBXIegDx9OIOxpdmlyzBChvA+DfkDjHbgfTD8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Subject:From:To:MIME-Version:Date:Message-ID:Content-Type: DKIM-Signature; b=MjsFxL+6L7mk0jTQ1NOozq6C+RtEifNYXUIku8TTc+xrZl4KnGI/iBYeyhuSLPS/Qw0B6Y+Qen yDdfxa2zzoU9In3nHbu2C1+x6RsyoS4eNxE1vaPWSPZjbaPOSqbvVfxA5IebUaI10iVgT0xe+S 3/yqpfQxCb4UR/e31rpWmekga+kFi4p/8rvBdvSxpxN/N13Z3sSe1Tgp+6XUeHJUBewPwGnhT9 Nl4vUy9OuSp2+C05EbJ/XKpm9awIjrjoVIDtVnEqLZbAi/W/fev5DDtgLv0qkOl4EFKGFJbCYh J9v3z2cF1ZiKXkMgesvTtioy2esm8rSiuZXnxtEc3HUiHw==; 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:Subject:From:To:MIME-version:Date: Message-id:Content-type:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=WckyHpEfbyZsFAzjvQn9fLKxVwjDB5n/NdP23HJx30Y=; b=gIWMeFQy6OaTVb0/bsGoguj6wV 4Q9mlJnQuoFKEM5l2jQwQ8to+wpFHjc+7IyDVpnbanvhPXcXh77nsF5FeHrrHIZxFxcRK6gtpDjro La2c/2D/L5b5EBvIg31aJPNFbf2+VE0Qk39hAlvRblFaIQ18g/X1RCT7B2vUnxOy8VF8uY64aXGuE BoJQKe4llZd8v8+4x4fZjh1rdh+4xKymPHhPS/hzjsbdsJRypqdQ8nx7XHZA7AOxVDqfWKjnY15mi X52ufnmZoSvadkj5i0r0k745lhmA0NxFQFaRASqHcTI0Xo6Iyf101eTGuE1v4Ai/6IdSdlKqJsalH vxz+pkDQ==; Received: by zero.zsh.org with local id 1sE8P5-000O8A-SW; Mon, 03 Jun 2024 14:11:15 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:49129) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1sE8OA-000NS8-JZ; Mon, 03 Jun 2024 14:10:20 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca ([24.224.136.13]) with ESMTPS id <0SEI0WDAFCBPIP80@mta02.eastlink.ca> for zsh-users@zsh.org; Mon, 03 Jun 2024 11:10:17 -0300 (ADT) Received: from [192.168.0.15] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id E8O8sAfXW08rzE8O8sUmau (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Mon, 03 Jun 2024 11:10:17 -0300 X-Authority-Analysis: v=2.4 cv=b+UR4cGx c=1 sm=1 tr=0 ts=665dcec9 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=3gUOu-7Q2_IHVX3mcoEA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=CwNl_8pwmfj6e5DZO0IA:9 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelvddgjeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtkfffgggfvffhufesrgdtreertddvjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepfeefiedvtdekvdfgteekveduhfdtledtgeettddtkeeifffhuefhkeehgedtveetnecukfhppedvgedrvddtjedrudelrddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudelrddufedphhgvlhhopegludelvddrudeikedrtddrudehngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: -100 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------hYtNhnELfhR5pC03AdTnQ8Vw" Message-id: <2bb9cec5-1293-4103-a73c-fd2a190cb65d@eastlink.ca> Date: Mon, 3 Jun 2024 07:10:16 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Content-language: en-US To: Zsh Users From: Ray Andrews Subject: exec X-Seq: 29979 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: This is a multi-part message in MIME format. --------------hYtNhnELfhR5pC03AdTnQ8Vw Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I've just recently come across 'exec' in a few scripts.  No familiarity with it.  Running this: echo before exec exec echo exec itself echo after exec ... I find that whether in a script or a function it zaps the terminal and there's no such place as 'after exec'. What are the uses of that?  For example the script that starts xfce4 'etc/xdg/xfce4/xinitrc' ends with this:      exec xfce4-session ... so 'then what'?  Hard to put the question into words, but I have a sort of hanging feeling, I don't know where execution goes.  For that matter, neither do the xfce4 people know where it goes.  ( Micro rant: you have yer systemd and yer xdg and yer dbus and God knows what else all layered on top of each other and nobody knows what's actually happening.) The question arises cuz I want to run scripts both just before and just after an xfce4 session but nobody knows how that might be done.  Not our problem here of course, but if I had some insights into 'exec' it might help.  When, where and why do we 'exec' things? --------------hYtNhnELfhR5pC03AdTnQ8Vw Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit I've just recently come across 'exec' in a few scripts.  No familiarity with it.  Running this:

echo before exec
exec echo exec itself
echo after exec

... I find that whether in a script or a function it zaps the terminal and there's no such place as 'after exec'. What are the uses of that?  For example the script that starts xfce4 'etc/xdg/xfce4/xinitrc' ends with this:

     exec xfce4-session

... so 'then what'?  Hard to put the question into words, but I have a sort of hanging feeling, I don't know where execution goes.  For that matter, neither do the xfce4 people know where it goes.  ( Micro rant: you have yer systemd and yer xdg and yer dbus and God knows what else all layered on top of each other and nobody knows what's actually happening.) The question arises cuz I want to run scripts both just before and just after an xfce4 session but nobody knows how that might be done.  Not our problem here of course, but if I had some insights into 'exec' it might help.  When, where and why do we 'exec' things? 

--------------hYtNhnELfhR5pC03AdTnQ8Vw--