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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 ADBC22641E for ; Thu, 16 May 2024 23:30:26 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1715895026; b=lQcVO1TrUHoSTd5I+EWuDCE81hBJ/M0rj4ziHuoXNZvSz5kXplCJ+gRlRUaxwtslheZIFiWPlO Q7xW1H44rPsmcx3dnyUEqJ/dLjl88F/GzKPyvuDEpC439jLFtciLsygvQfr+h7ElnR+DlPwSnV 6M4ZHawVzDfh5wY9FjHpmlSer4h9uGS9QKyZGjRb6lg7gVNb42xPck2pA72QHA+BqiqGEYOfpe a0lfkKf88fHQL1oTXZ4bGZOnZ3rwaZqtHu9aQK20o+6pZWiAUHIQyARDMJ3/TLU67vDYSCPxEr x/CgVUy8FzTFx2nodTpSPWzh3IK3gssaGK4EJbgy8YG14g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; 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=1715895026; bh=usK8ni0rWeGapYEV4DdQu/TkHZETgag40zGh1pEeDcs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=Exdgu1sNHS3eqZM/BrRS6g8+ikuFGXTzldSQtpaNxutis/2wVialo0WxeGGxhAHv0fYt5uMbAI TscNuRR7EahCyf/Q8ehpIX/vLGtRyPtsh1iCcHZPUElOF0G5cRUR6muKKoxg/9ekS+gUozWwSZ fTz+qh1iFUBhVMiIJJmeFq/7fHBIWvv4qbEeNmIRluDrZZ0N6FPlX3e/pxOHFqP3yqQdyAhKB0 lsBC4yDdHNpVHLGMCU8GZ7FyYz4POg264seL43ab4ZGQTdZo9wCaB16Dy+2lkoNCxCJILjfs0S qvQ17cOWxQK7tk3OnmgLToU1dL95HWeUCbD+wpSOx3oATg==; 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:In-reply-to:From:References:To: Subject: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; bh=MSBitIqOWmKSh9Wlr5sG/kOEh1q+Uh/dzsVCXaePh0Y=; b=NHmPxDYRquGvaIEXv4FZ+BZJa9 mmjdwOvSXJ9wbP/KXN5PJbn+3QJUxeqFzxfuWib/FaIYeANDrSqZTbLjgQjhsukwCfqmv5EjcMJzz T6N9Nx1quc/1HU+9nF0RqaPp+MeljzibJcM7DbABlvUcHoe471EBaDdIjf8gT/K3Te6VbRNByoiOV S2lgHFoJBgX2jl7sG1mpuufZA7AUGxcMTCGP8p8ScyDgZk8sZA9IRd+VNkRxwW1FHJf7HEzfqzoXl B2MkFYlXwz1RJWA+3sJIwwEWetcO+n8qWVR4rIstsuYuG2GoLXYITDwoayOUyVQ3YeLEF/xkwDi45 E4L+VFRg==; Received: by zero.zsh.org with local id 1s7igD-000Et2-U6; Thu, 16 May 2024 21:30:25 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:47639) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1s7ifI-000ECn-MH; Thu, 16 May 2024 21:29:30 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta03.eastlink.ca ([24.224.136.9]) with ESMTPS id <0SDL0PNYFKRDVAF1@mta03.eastlink.ca> for zsh-users@zsh.org; Thu, 16 May 2024 18:28:42 -0300 (ADT) Received: from [192.168.0.15] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id 7ieXsLcI898ni7ieXsvAMT (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Thu, 16 May 2024 18:28:42 -0300 X-Authority-Analysis: v=2.4 cv=C75KyhP+ c=1 sm=1 tr=0 ts=66467a8a a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=8gn9wgsfa_CdzoFioaUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=EgoZidUVFmpL_94lfZQA:9 a=shpbQDW8EXsS8SrW:21 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehuddgudehlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfuffvfhfhjgesrgdtreertddvjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhephfettefhveeguedvleeggfdvvedufeeuudffvdfgledvvdfgtdeigeeuueelieefnecukfhppedvgedrvddtjedrudelrddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudelrddufedphhgvlhhopegludelvddrudeikedrtddrudehngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------7mYjjt3sadsLvUqqWylEm2Rl" Message-id: <09115b25-9017-4233-aaf2-6e4378aba53f@eastlink.ca> Date: Thu, 16 May 2024 14:28:41 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: exit to shell from nested function calls. To: zsh-users@zsh.org References: <9b97bc99-1d92-46f1-8841-c757d1dcee68@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: X-Seq: 29936 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. --------------7mYjjt3sadsLvUqqWylEm2Rl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-05-16 13:26, Roman Perepelitsa wrote: > I'd turn this into a script (executable file) and use exit to bail > out. IMO, anything that can be a script is better off as a script. I'm slowly figuring that out.  Yes, that's the motivator I need. Coming from C I just sorta started writing functions cuz that's what one does in C. Thanks Roman. BTW, just in case you're wondering, it's an overlay for mostly firefox which chatters to the disk almost constantly.  Got  a newer machine recently and it has a SSD, but I know they have limited R/W cycles so I'm using the overlay to deflect the chatter to RAM. Works good so far.  Will try it with a few other progs too, and possibly /var.  It 's interesting watching 'fatrace -fW' for a while -- see who's a disk blabbermouth. --------------7mYjjt3sadsLvUqqWylEm2Rl Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 2024-05-16 13:26, Roman Perepelitsa wrote:
I'd turn this into a script (executable file) and use exit to bail
out. IMO, anything that can be a script is better off as a script.
I'm slowly figuring that out.  Yes, that's the motivator I need.  Coming from C I just sorta started writing functions cuz that's what one does in C.

Thanks Roman. 

BTW, just in case you're wondering, it's an overlay for mostly firefox which chatters to the disk almost constantly.  Got  a newer machine recently and it has a SSD, but I know they have limited R/W cycles so I'm using the overlay to deflect the chatter to RAM.  Works good so far.  Will try it with a few other progs too, and possibly /var.  It 's interesting watching 'fatrace -fW' for a while -- see who's a disk blabbermouth. 



--------------7mYjjt3sadsLvUqqWylEm2Rl--