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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20153 invoked from network); 29 Jul 2022 23:04:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Jul 2022 23:04:19 -0000 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:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=KCTKArOlj1oYfsK80MjRrM9lbFlWgDSTj/6g+aPegGc=; b=Y2xP/+FHn64y2HtGTbGSQC01gV G09MKGG6/kFgfujsk2WUxDY/6M+GbIEq4TqSyQf3s7A9gQccGMczjddJFUpglZgggUq6JgtXxetiX naI26l5FFmZfFk87GM9z1TsicqWZ5AZe7GAy5rlnu+mXJGrfx53d2vLrqzDOSEmuBSWJ/GCzbJhDL dUjKYMZXqOnaTtVAkcAxZFJmeRBaiV3U/MMfPybxhoxf5fkEl5YoiJLIoRLmR7iROAxlH8XJCT9Hm XHeu/7gzBlRqu20swCCdpCE0Xz2y105ZRAk4fo5an1vltnr/mQk1eYlsOaWtYCaWfE/RKzvMXT3ft dhPmmbAA==; Received: from authenticated user by zero.zsh.org with local id 1oHZ1m-000Hz0-9U; Fri, 29 Jul 2022 23:04:18 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oHYwb-000HWr-Gi; Fri, 29 Jul 2022 22:58:57 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 734C927C0054; Fri, 29 Jul 2022 18:58:55 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Fri, 29 Jul 2022 18:58:55 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddukedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvvefutgfgse htqhertderreejnecuhfhrohhmpefnrgifrhgvnhgtvggpgggvlhojiihquhgviicuoehl rghrrhihvhesiihshhdrohhrgheqnecuggftrfgrthhtvghrnheptdethfevgeettdfgue efuddtheefjeehffffuddvueekhfetffdvtdfhveeggeegnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhihvodhmvghsmhhtphgruh hthhhpvghrshhonhgrlhhithihqdduudehudekjeejtdegqdduudelvdejfeekhedqlhgr rhhrhihvpeepiihshhdrohhrghesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2B96731A0063; Fri, 29 Jul 2022 18:58:55 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-758-ge0d20a54e1-fm-20220729.001-ge0d20a54 Mime-Version: 1.0 Message-Id: <6f6335b6-03c0-419c-b2ba-4ad22e6cd468@www.fastmail.com> In-Reply-To: <549595162.4093300.1659133992108@mail.yahoo.com> References: <7499d9ad-a131-4709-8fa1-79ca1f64d44b@www.fastmail.com> <549595162.4093300.1659133992108@mail.yahoo.com> Date: Fri, 29 Jul 2022 18:57:52 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: johnnonedoe@aol.com Cc: zsh-workers@zsh.org Subject: Re: read -u n -t -k Does not work. Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 50433 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'm looping the list back in. Please remember to reply to the list in the future. On Fri, Jul 29, 2022, at 6:33 PM, johnnonedoe@aol.com wrote: > Thanks for the timely reply.=20 > > macOS Monterey version 12.4 > zsh 5.8.1 (x86_64-apple-darwin21.0) > > I don't understand the significance of the lines marked below. > I am trying to use 'read' in a shell function. > > johnnonedoe@aol.com > > > -----Original Message----- > From: Lawrence Vel=C3=A1zquez > To: johnnonedoe@aol.com > Cc: zsh-workers@zsh.org > Sent: Fri, Jul 29, 2022 12:40 pm > Subject: Re: read -u n -t -k Does not work. > > On Fri, Jul 29, 2022, at 3:20 PM, johnnonedoe@aol.com wrote: >> read -t -k >> Works as expected. >> read -u 0 -t -k >> Blocks till return is typed. > > I don't see this behavior. > > % zsh --version > zsh 5.9 (x86_64-apple-darwin18.7.0) > % zsh -fc 'read -t -k' <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > % zsh -fc 'read -u 0 -t -k' <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > % Those lines run your commands in clean shells. They are supposed to demonstrate that I am not seeing the behavior that you are seeing. I also don't see it using a function in an older version of zsh. % /bin/zsh --version zsh 5.3 (x86_64-apple-darwin18.0) % /bin/zsh -fc '() { read -u 0 -t -k }' % --=20 vq