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 8498 invoked from network); 16 May 2021 18:02:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 May 2021 18:02:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1621188149; b=0naBD5sjCPJZRM3ydFbP4xq73Z8OSSnU/97mg7d2rdVlds6zUcOdkn9NNxk9GBFhLej33HOf+Q XyF/b9af0g8CQnLt0FwQ0BAaLuD6eq7I5ryBJHghlvFVCW7duDJYO2hlBwnJagek9sd0c4bVjK WIgpqebP35wyFPa+w8DtX1VCcs3C6wVMd0dUK3W8+QCMjS5wfDhYbH/mxtvkGDrrziG2UM6Gxg wYXZZSTjE84zYEt6+7gTH0S+gAvTriWzdJmycDiRLxoHsEGVJ4AAFFJtO/ra4uFUszojQMEsQC i6fAtfGK/df/+pZy73dYy17BonVp5euiqmyA/M4spcf1MA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f46.google.com) smtp.remote-ip=209.85.210.46; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1621188149; bh=LAgPqgLKpPdbizGD2cJMhWS2ALvw+ZvDYJZnysIHGL8=; 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=J63/6BTlkINvG4uU5sarmdnnd9ftoCxNSGQjJ6TgQ0268GFnTGxAVvrKeso1h1d+zd/jm+VHK3 o+W20jc1fGuciVptZxGlQMHHEUHVdxwDELS3xBZ/oqTG4EL6jnhS26mAKc/WsjlylardgtluZS Ml1eVCOnAcqhHsDECT09/1s9z3HdhSrwxJaupBMHdmzhRat064rcuAbbdL74GCPSZ1RZEA3Cej 5YSq9JgLoqkxNDSZAOQkKXfX/KGa1DDJYlCyeho38XA3e/BQeQyxb6Q92+2rKfno6AcbWyZ6+k wsMl3VG05dPRT9wctFAdmb/DhbrlBiwlilAIftvEdrL8cA==; 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: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=LAgPqgLKpPdbizGD2cJMhWS2ALvw+ZvDYJZnysIHGL8=; b=abipUQBSw6zXhs7ewhD9mAx96q 7UaY9iqZfw4WXcoYprWANf6UorT5zUAr9T9JNj/EMHvr5w6EzlakN+xcAUuqrHKNGs1eKpGvVY7lh GK08wPlrVhONqJBaC6PkmxbWLxgEGO5s8huYS9qwBNvwynFILjfHqVUnU5zSYTw4QfDtU+UV3zHIP USeGgYbxbZpUVVWho91HveRgcO20pwu5c5fCNWIiu6AFv9A72PHOn8ATPwiqCTyMYL048QU+DTTM/ Hnd/5nCyaHy2lLYShzfIxhytogBQNFy+C192FsbzwDkC6gO32yoXGLUma8EUn8RdCKOqYkTBhAK7a o1ZHghqQ==; Received: from authenticated user by zero.zsh.org with local id 1liL5w-000599-O1; Sun, 16 May 2021 18:02:28 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f46.google.com) smtp.remote-ip=209.85.210.46; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f46.google.com ([209.85.210.46]:35611) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1liL5k-0004pw-JQ; Sun, 16 May 2021 18:02:17 +0000 Received: by mail-ot1-f46.google.com with SMTP id 69-20020a9d0a4b0000b02902ed42f141e1so3717344otg.2 for ; Sun, 16 May 2021 11:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=LAgPqgLKpPdbizGD2cJMhWS2ALvw+ZvDYJZnysIHGL8=; b=sK1EX7iQBtaVLMYv7Qj5qxNLjt0aVorsU9VIVYK29hraiC0gakw6anEJO2VOvqbUBs iAlNTXbtqhrcv1mZg9OK/v0A8dfBBsJniTymfCxAmuTelOfpIylIPrUYEPbTecP4Bzk5 SME2GwuAr5x2vqauqa446XAQePykDoTfNZVYqqkCqrRRD/n2Ib3TbWPB//DQ6jOpSipq 4+FuAX0r75KvZtUchmiktNbsiZf0qu9kCOMsLZWy3xJZ23NRpYMDXO/IkjqXB+j9WToc hKX8d6oEZLOUoy91vvgt2QGAOG+kU1uB4nXRmDAYDlVqhykBBasGE3dq2tcK59Rp+fyx UjgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=LAgPqgLKpPdbizGD2cJMhWS2ALvw+ZvDYJZnysIHGL8=; b=mtxo/21od8F8ZpZOy2AufXq6XDiTc3GoVVJmy7xvL9s6oS8t7v3VNXRF4xifD6Uw6V ydpHfx/TohvjMzlroTX6qGs2XLn3fw7ucA/Fv1pgC9ujmJsLrjgTmqOMeZj2frLt1qkr khOfnY7pBGQhhqCPfvpaYJUJuawP6lzSfVujDAnKqVp+UiVqnBZet84YD0rYuXsdxCFB YzWjSKXjLL0DQYf1wSmpqV6JXs093wKAQqn/Uvk8Wz3SqIMUF6mqup4AYia3hRkzpxjA K23pDBmC/Xz8z//NknU+mQzGok9gj+zgnB3x0c9kQzCEvlnFdkJtJRmMeStZQnAZvSlx nmjA== X-Gm-Message-State: AOAM531ZivTof3oCbjnAvl4ToYCEDvT/0LVrkmk3mS5O/MU1KeXtOZt2 XP/But75sU/Da70tRlDB2ppDdzHHTFyL0iNlnu62VRs8ouM= X-Google-Smtp-Source: ABdhPJyieyujhw9QLMqyShSzv46mlrF2Ddv4I9ips8sVe3NnUruMfgoOj+jb2rjHhob0N6q3xn+/WfHw5gh9OWSBi0o= X-Received: by 2002:a9d:170b:: with SMTP id i11mr41867620ota.161.1621188135728; Sun, 16 May 2021 11:02:15 -0700 (PDT) MIME-Version: 1.0 References: <20210516164328.x7jnh3gfqfiidd7a@chazelas.org> In-Reply-To: <20210516164328.x7jnh3gfqfiidd7a@chazelas.org> From: Bart Schaefer Date: Sun, 16 May 2021 11:02:04 -0700 Message-ID: Subject: Re: 'while do done' hangs interactive zsh To: Arseny Maslennikov , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48848 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Sun, May 16, 2021 at 9:43 AM Stephane Chazelas wrote: > > while LIST do LIST done > > LIST is not explicitely specified, but it does appear to be a > list of 0 or more pipelines. Or in other words any script. > [...] > > ... other shells require at least one pipeline > in the condition LIST (which to me just looks like an > arbitrary, unecessary limitation), but that does not mean shell > implementations have to return an error here. Bash requires at least one pipeline in the do-LIST as well. Is this worth making into an emulation-mode thing, i.e., adding a couple of more conditions to my while-do-done patch? The documentation for CSH_JUNKIE_LOOPS could do with some updating as well.