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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3508 invoked from network); 28 Nov 2022 20:47:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Nov 2022 20:47:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1669668449; b=Mug2b84CWgDI+Royq/h9EGa0lgRHiFHTzt4cMJS7k4Hte5JSW738rwIwxOsivhm1W7+SQ05jwU 1QZHrQw9UKnvGxyo8A4Ztr+vXREhutu+MI1hhb/QkeRNHTLbUAf7Jp/5KJ0uGkZcfZ9F3HTV5n GwcJza6j4qwKyayzmdXzgSQG6z2uAudmCICfjOAZuHxTsKoPU+jL4/ysXpCo+AJsDiUFXqULDt sGfasZDTGrS7qLp3i8WRMKw5N30IODc9dqL5Zt+N/u9W1yoD5rPG7T7PPh0x2UI96u1VeT3y83 +T2ezQ4mzSXr9Ytqz7QlnQoCYX9Xl53GxrRdyyVqazaalg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f169.google.com) smtp.remote-ip=209.85.219.169; dkim=pass header.d=gmail.com header.s=20210112 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=1669668449; bh=EzOd1eqNg+oyCeY5wf8mlXW8Gd58kbvvaxZp0jpJWZk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=NrLXkv9mzblYxP5Nqm4xqQaJ7s2gX99ta7j5zRU5RYJU7tneIeCexjEMdT6DfN1/LOqYi/daeE S7veMeP2hrfxy4uX9IR2mGYe3GOPs49bNK75owCQIEG53RKVtQV85UdvXwGc46sgjPXVV0SxM7 KEF4l6oK9jiF+h8OPtQRCVLe9KsYNjvpEPkWXjsGUXOHJqeMzw8CIDRwvT+RWPpNNjNA5YZh57 tvJCb41k+MeZIvBrPv1IGfN2GQcrr5QfEAFK5vD/sCOfVuwEfuWt1UXMFcxobXDj5LPMgie0ub RGQ02a450DQhw+LuSxrtX8tFOCKQFvLK/dN8u+tRDaK9TA==; 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-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=HAbf04htEtpMKroMRKW6zX8gL9V9T2JjzXryI0YpqVA=; b=CxOvMqVBZxh9a/zH0VqlnWsO1o 8crBVGNRCvgyDBqX8gyljpb0JpmLyFKE9HIjxIdXV+uixTrKwQm0dwepp/JYoSc2z2+Ri6bxDsQHu Ai3MOK502qaDOOTOSR2hK+by3VA66CsZsCCh/oGvSBB0uLBpC7XzvaG/Uck9/xfwhfAGYz/ISGqqv Eu0hq4XT0PhlDPoO103jmrGanaNJ5hScuRI75pqO2h3jV0BqjlzcIsEnIFd/NZlk6sDxPKCKgPQBv EPK4ewM1eaqsabNVMabQGCmb8PL5aEQHcDiP/2QyY8fBMUwQwB4zb0H6hWhEeuupryGNTqO4YEoHn Z9R+c5mA==; Received: by zero.zsh.org with local id 1ozl2G-0002b2-LI; Mon, 28 Nov 2022 20:47:28 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f169.google.com) smtp.remote-ip=209.85.219.169; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yb1-f169.google.com ([209.85.219.169]:38631) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ozl1m-0001v1-M4; Mon, 28 Nov 2022 20:46:59 +0000 Received: by mail-yb1-f169.google.com with SMTP id k206so13624110ybk.5 for ; Mon, 28 Nov 2022 12:46:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HAbf04htEtpMKroMRKW6zX8gL9V9T2JjzXryI0YpqVA=; b=pT6zFU4Nm27BQUsgESC4GIdEz9+Dre1cfuDLKfg8jP7Rl5imTu2pk53esSIRL1ftta mk/R9WGP6TtwwKwXGnJFUHBKysuptduJMi2oZ8gdqM0n+LCttEORhDvp7I8WjmZ2sR71 7m4CHmyNqHmWJgZIK7U0b8UU2fbiRX/qgSSLH3fagY/wqFly8IM2iTbUZIHuMj7p2Jdk ClewLnVfwVts6/5X3cf6ouXy0In0l15d/tbWn+Fp4dQiJas+xZdWlZm8Ig1euQQD1qzl o0JjHB6uT7JWcXYCp+B7r4M1t6DdrV1OvgS5ID3yUL8LZcF5X/qbzg3AUOD7z1IBE9Qn 9XmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc: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=HAbf04htEtpMKroMRKW6zX8gL9V9T2JjzXryI0YpqVA=; b=wAowxKi5ZWs5DsRTs+yRX8sDbWoKSlhcgffCjOJ1RB0MOvtFM/oho4xSJXOlbpBdcW Ggli6nOOkxRqsceFvrm/LFm2M1GlCWnOo4VYiYFIFhEaU6TAz9Mx3CgBNAfV3pyEoty7 aoW3R2Qrjdgll9KfoLaLleW32t8LR8ZoqvIEMyw/2Dq5ovEJahUSHs+8WUJbpy+4NKYk +VsB02d6MXNzgtV8wDyuDq2b7uyvM1ypcr3WvOKczcTcTMWJi9NvG4c/WdwPt5UAfneP qTJoSQUibc6ZRYZE+mXItoXvoy3NVLKLrS5oR2v/Eln6YjrctfIFU0n1SZMmPGMY9FV2 vBPw== X-Gm-Message-State: ANoB5ple+kTM9qoU9NJAOpWCFMP04vnUa2ap4iCC2EN/QpKz0JVKUhCd Q8T5DnMpOHcuLFg/gvsd3ZVBMXva1wy3ZxVcfvw= X-Google-Smtp-Source: AA0mqf69qPm6Th35QCGKHvuwrQm/XSvxVFbADlOqZDCT88UCGBglQ3qgD7b3rFBUhebmiwppN9kVPLFEiJ9oKHw4O7c= X-Received: by 2002:a25:ae62:0:b0:6f2:16ed:4f48 with SMTP id g34-20020a25ae62000000b006f216ed4f48mr21893560ybe.192.1669668417507; Mon, 28 Nov 2022 12:46:57 -0800 (PST) MIME-Version: 1.0 References: <24954aa2-8ca5-b946-e875-1309cf46e007@eastlink.ca> In-Reply-To: <24954aa2-8ca5-b946-e875-1309cf46e007@eastlink.ca> From: Roman Perepelitsa Date: Mon, 28 Nov 2022 21:46:45 +0100 Message-ID: Subject: Re: one time in 20 error To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 28441 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: On Mon, Nov 28, 2022 at 9:34 PM Ray Andrews wrote: > > On 2022-11-28 09:54, Roman Perepelitsa wrote: > > > > This might be a response by the TTY to a query that your script has > > sent to it. Basically, if the script queries the TTY and exits before > > reading the response, then the response goes to zle and you see this > > kind of garbage on the command line. > > > > ^[[<0;24;4m is a CSI sequence. I don't remember its meaning from the > > top of my head. > > I thought it might be something of that general nature. I wonder, is > there some strategic place where I might put a 'sleep' to let things > sort themselves out? Probably only would take a millisecond or two. You can try this: () { zmodload zsh/system local REPLY while sysread -t 0.1; do done } This reminds me of a student in a C programming class who was frustrated by the pesky "core dumped" message printed after his program succeeded. He redirected stderr to /dev/null and--Voil=C3=A0--problem solved! The teacher wasn't convinced by this "solution" and neither should you. Roman.