From mboxrd@z Thu Jan 1 00:00:00 1970 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, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3863 invoked from network); 1 Dec 2020 01:50:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Dec 2020 01:50:51 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1606787451; b=VFjccenHlBpdSvbTN2ssimp1Sshecs9BbAwK5viWtHZrYyWqGRdNHcu+eGfPOWlbzPTvcLwTvu LNwDtPGpk44dR7/hwAVgE96cb37SOD19d6NWzyKAJuDcVXv5YfgRNsHJtaICYoJjcSo6yBGkTJ DDqnDrkOFzpAgAPFVu2neNPsD87hJEz6WA4Jk8LpRzw21ueUpdEAozwX8lq5OBRTcihZUA9Gfv LLKmQEsZZJiXt96G4zwsixfo24kGjdFr+kXF76BdU44LEvqljvMEAdq+hAAlT78hb9UYvuvYcM ssXeY4NtGwaYG2HsmpH3ugoPZjGl6XBmWjeyd4BrhPR36w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (static.214.254.202.116.clients.your-server.de) smtp.remote-ip=116.202.254.214; dmarc=fail header.from=zoho.eu; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1606787451; bh=0IkXQU6jqtBm0I/zeC4xr6yQ3zIEtbYPheMOFqUSAgA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Message-ID:Date:Subject:From:To: DKIM-Signature; b=WGUyl3sSJrASX1ejo/tCx3/HL4ev6DwL6oPQp5AqRhuAoF5I2YN2Ca3DJdgc5zJnUbHaTxhugq +LTx7lHsLXhv3ZcM19IB8V6QW+4O6VDhk56zAxMe14BVMIQ8NMTknTMOfT4TfXeQ23ZuxgSyTq w7SMwi7WMjQy3DJQD7o/sbjkiwN6Lw7T9XUtXT1p8uZxbzfVOx+q1iGJgK3r2Ktmd126hssAQ+ F951RcfY8yiIY9fB6P1rznEhAVoACqykhgC1jpUGJr1b5BzbpmejNmIUhde6lcYAs4hchBKrOE 6ax0N5iuyDVIHzSVZiBZXOE1Rj3L0mK3YiSL16U/ft8V8Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Mime-Version:Message-ID: Date:Subject:From:To: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=2QLWW90nHr9lPHDcPjAN0DQUk9/jHfunvdFQ6iCYvT4=; b=H0Ppqp8by4SKVedD6YJOLW6y7s iZeQh7Of7LH8L93LPuUEBt5CisiblgUHRTk5zgEJu1j6WMFqE6+l7tI2GA9qo2wyfBw9j3yG3vE2C wPnFB1nV6MLNbxr4Qj/JpRWm+GG8VKBOb+xCs9JWY5WEbzA/SBClsCkA2TdolXbq+Wttn5ITm2vZo a2zw0aHpi/mObQJLitC/htq1U1JxDFe4CwJmFGCXl8fUoYEGw28VjDWKUcGip2tm1Cqmr1IYrBNTp Dq4/XrPK80uxQz+ACDz9K2k0vgCwthDhLbBARHVMMyyyX1apOqygZnOcFw/BPEjLPutYJWp/FnB3s FiPZn9Kw==; Received: from authenticated user by zero.zsh.org with local id 1kjuoZ-000KpF-4x; Tue, 01 Dec 2020 01:50:47 +0000 Authentication-Results: zsh.org; iprev=pass (static.214.254.202.116.clients.your-server.de) smtp.remote-ip=116.202.254.214; dmarc=fail header.from=zoho.eu; arc=none Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:40828 helo=ciao.gmane.io) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1kjuo6-000KRq-30; Tue, 01 Dec 2020 01:50:18 +0000 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kjuo5-0003UR-21 for zsh-users@zsh.org; Tue, 01 Dec 2020 02:50:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: zsh-users@zsh.org To: zsh-users@zsh.org From: Emanuel Berg Subject: infinite loop that is possible to quit Date: Tue, 01 Dec 2020 02:50:10 +0100 Message-ID: <875z5m9twt.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:Dr5WjHM1Ij0GfxRdZYgl6EuxfRE= Mail-Copies-To: never X-ACL-Warn: DMARC DEBUG: should REJECT message from zoho.eu failed sender's DMARC policy, but not being strict yet X-Seq: 26203 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: Archived-At: How do I do an infinite loop that runs something, but it will still be possible to quit the whole thing? The best thing I've come up with is while true; do # run program sleep 1 done Then do, say, q to exit the program, and C-c during the sleep period to quit the loop! Is this good or bad? TIA -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal