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 24571 invoked from network); 26 Apr 2021 20:25:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2021 20:25:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619468714; b=GiKXRjCbhHLCgK3HHHO6yVjic7oe+JybYu1sr8TEw2bMQyDubeN3o+AEV4oj5TwPLbDT7JCUAZ AB888TF6m1Nzmb5R/ViQDGV7bbEpuVl96dO1T6k6tosySBnlfFrJmBZboe56PmTJRUyCZpT4cZ 0Qg/u9sFygbjt+8h/BW3yGKHrvhQoueBFoDKM8t8DHIlsavWTGsP+FT/ByoTCt5Aof+3wHeNua Pb5dKygXlkwzjqsa0FrfqwHVZPiKkWUAExGj0iEdfEx+3q29YCJVA+/CyNzJoNtl85IPUsgq3g 956R/FaD1zUFItAHbPE8UtiMQ39CsQDUI1t0od6XdM6mEw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f42.google.com) smtp.remote-ip=209.85.210.42; 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=1619468714; bh=hAP0cvXvZhky+dX3kkU3X5JYqYK5XwtK84qpmkyJLTM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=lOC6aP11ExaBDdueQO8V+z1XkgUVzW2ABKy+W8e3dgQgNzWoksWWOUDIpu8ZORGSKMsw/23W8N /0jh9RK8TPzapq4oPumK7ShvKZF7SWPulbTvRGlCVHQMDPwFb9MRVAbFuWe/rXZVQmHveFiA2H 5YTn4S8c34zjCvFZty+Prpz2TpWrVxAnROM2vthcpgnwgyH34/DdHPy/Y+Q7ZiyLuIgSQs5mU1 d2iQFarW1tLQqsV9/JABk48odRBUz5qSItkHdy4bw+QBmFlMI1muzyyi3KdUdik5bzpjz6gLg+ QvBLc9s04r4PGOR0/HRc8FcJLF/bosZm+x3dzdxkIu0pUw==; 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: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:In-Reply-To:References; bh=pHa9bBBmFUi3MSBB8vbajw8Y/UwR+vNEMLTqrbgQacg=; b=L1oouyVX6XmHox62jl4A7S3gap Ze5hD2EWyu0evmISkVOq1f3Jq2xBNtU2r9x/yjBv0LcDWaf/FyAx1cxSTzkfJgBPRkVvOB7zuishA iD6BiK2bdHnW0z4fjjHBh/vbJ4Z06b/bknTSWKeLBhFeGzGN/nUP/8B6hfl0Sw99L4HctI49Q/tZN dE9gpNkmThc9DDgwgMuGzKmq9CRy4v+9lVJLWR89MJfHZwEj/kug9zlyHZc/ukd+9ZGNpX72HefJL x4mwj0x90JNHUW4WMRhpBQcRTVNPpBBw3qDGp/zm0U3IyDkKn583+M1bVJ0+SzckWgq7GQW0iNo84 l6gOdznw==; Received: from authenticated user by zero.zsh.org with local id 1lb7n7-000FfW-BZ; Mon, 26 Apr 2021 20:25:13 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f42.google.com) smtp.remote-ip=209.85.210.42; 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-f42.google.com ([209.85.210.42]:38583) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lb7hx-000Dp3-Kp; Mon, 26 Apr 2021 20:19:54 +0000 Received: by mail-ot1-f42.google.com with SMTP id e89-20020a9d01e20000b0290294134181aeso27523201ote.5 for ; Mon, 26 Apr 2021 13:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=pHa9bBBmFUi3MSBB8vbajw8Y/UwR+vNEMLTqrbgQacg=; b=ylxPycmznCCWvePUw67v+GC1rchuiM4jzCnoq6vW68xAMD3SpdXhWLVnV7AyFyNUzT 83WVbmQA/EOtCNTZFy9X83hHvK9gt0T58SUq2ua9RmN5h1NmUhYFh1U2pHzpwADloN5c qeOT2FdxxUHQsV8zhFb5cFOmMT4DhZ+hZc4yWTGsEtVGx6aRLU/0GnxhpewDnjqLpmM5 wnDY8/fyhQiqnFhIZDGhikGqk+HtPc5oMb60NLlLUj0W0C0UT3mhx3nsXW/ZT2r8k53N PLZx7w7nyIR2RQ2w/xQ/qfqV9Ye3FggtIVPwxeiT2/7B+gDsPM0rJSJjAWfniYxHmo8C Zqow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pHa9bBBmFUi3MSBB8vbajw8Y/UwR+vNEMLTqrbgQacg=; b=Nb2TqgMgVZmjKUQuVy5TMkPbaTxaHUCjt46RRspMcx4Jt34spiutG49BVnUGzNUou6 +7mE6fBKMBFOnAMnVWZ1ZZfYE/Kxq+bObkwCtDCXiJQb1Du3KckfNztzIule3ofGQwZ3 vb0uXw04P2SAaKK/0KWoQy0a3C0chXuflm00xxF6BC2VL/rqHw0eo8FIyk3RXQjsqUZP XPF3DK5/TySzZcVmZLwvtyE0RGXHV7zkWsivIDNo1ccbgdJLIEmozwXpiL2qTXmDiGJT 4ByBAY6M5YC5wub+vZhfuuc01Y9SLCnYg/0JYcb0AhCmd67YgXZtQXQs/jl2oIxBYy8M WLBA== X-Gm-Message-State: AOAM533txVh2xgS80F1HSZ7G6+Kay0vjzd7uY6b6LsTBDwbkI1npjcxy sWUg2egczU8B6eJZEEY4VOmkNTNtiExR08b3IPzvCFFVQFYPWg== X-Google-Smtp-Source: ABdhPJwaDnZid6rUNhnfidVCyxuejgum+Yx3dq1dF+ekRVlELJQEAfJuXAKXKgGfez7yAZv39ohpHdqw8/5to6mYxSQ= X-Received: by 2002:a9d:a4e:: with SMTP id 72mr16120292otg.229.1619468391776; Mon, 26 Apr 2021 13:19:51 -0700 (PDT) MIME-Version: 1.0 From: Bart Schaefer Date: Mon, 26 Apr 2021 13:19:41 -0700 Message-ID: Subject: BUG: "always" block with send-break confuses stdin parser To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48720 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: I haven't dug into this at all, but consider this: % oops() { { zle .send-break } always { return 0 } } % zle -N oops % if true if> then (type ESC x oops RET at this point, then begin typing again at the new PS1 prompt) % if false then if> Note the parser thinks we're still waiting for the "then" to go with the aborted "if". There's no way at this point to complete a syntactically-valid "if" statement; the chain of unresolved "then" just keeps getting deeper. Simple command lines work and are executed as if at a normal PS1.