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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21907 invoked from network); 22 Aug 2023 14:30:58 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Aug 2023 14:30:58 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1692714658; b=rqdD2XqNIum6QeZhOmr4j4dskXjUrv8nYhKLMX15F3LT6vPsBouaFtFvhmDxWGha4ifu9Pw3Io fkzOIaJBllh/y5eH2WPvY3v4cQI2Xi7S/rv/izkDJ5WBPgsSXPELEQghMdopIdRNT60iGrFM5J Z8YzUNYKDPpvhag4g+UFq2/2QuMcS2yFODvpqO3Hd7bVkd0Iaq492CJBzMeC1XO54jQ+1KLK+x m+hIDkcuorWCmKX6/TSwccLMor6yATEp2ndLZla6ZvxZzznNOLpkXBqcOr9ABI1DgzXIcUu2jc LZlhv9jKRZN+GWvsGxcwTX13HAVD0nRhPt9fClwRLJ2RyA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq4-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.41; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1692714658; bh=fpaELu3VgPmfZETOO27i7/M5XSp4s3cPPzVEG6i92LA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=bBRre1luhWNFR3HvEoFQZr9iBjmSe/NsMMUQqvapYB6vTfkYvgYz+FmgAz0OLLlygkVyWX4wPN uotWWNk+DLy4bEQh5GXO8q9yzvwvgUk3oKaf4FyurMMyYcW745cqiWm/AGjiyuK9aw04GHrxpR 6pFXVRwa0nlKFVCF4qGTHJdAJ5yogTGZX+Je9RLrdsFNMplkCQ4U30TaxTBakCNy8yIqDIHnVV /yA+XJm+Cjs/3Ocq4FKeZH0ABonsmJdWVixrYgEmOfLY8JKVQ6WWIjXMqlN8dHe1bpb8/Sxl2W MX92M0WHDOHAcGc5SaE6XyW2qZpk4UDKCa9r+buZCA6PXA==; 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:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=p3cr/OqRbu4DnP7QnrmUvY/xIJO/LqFR8Fi5C3LikTM=; b=Qg18yNpBQ2X9CsSMIXdXuBKXRB W9DyI2DGoDsH53SyZqdzlcIFy7PIIRb/zV1eeTX6BYJy3hyx0Kc1BJZoc0Z+pEBQOCrCNaIIcfkGk m8mFEO3G0kofrenG8utQZkAN1SOg83X0yXgvCtaUSMAPqga+NEviN2Ge50iTWEFd39H+Oa92oZFjk 0Xb4QTm6axVcQS4ARPGX/yQMW2wGU5JN5AqWNRzlfOlvgiA69j7yRk/QYzXELBEvtDw55OsqUPuAH Bs7SCmpZzaAtSFg1Cw+sH3klT4vkIF2oPQ6wW9UKJXvtk47smo++VhzVipgKJoYM1+4gYK8esmjij JN5DT40Q==; Received: by zero.zsh.org with local id 1qYSPJ-0007tU-Pz; Tue, 22 Aug 2023 14:30:57 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq4-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.41; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from csmtpq4-prd-nl1-vmo.edge.unified.services ([84.116.50.41]:59055) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qYSOf-00079s-G6; Tue, 22 Aug 2023 14:30:18 +0000 Received: from oxsmtp1-prd-nl1-vmo.nl1.unified.services ([100.107.83.138]) by csmtpq4-prd-nl1-vmo.edge.unified.services with esmtp (Exim 4.93) (envelope-from ) id 1qYSOe-00CU5D-MH for zsh-users@zsh.org; Tue, 22 Aug 2023 16:30:16 +0200 Received: from oxbe4-prd-nl1-vmo.nl1.unified.services ([100.107.83.37]) by oxsmtp1-prd-nl1-vmo.nl1.unified.services with ESMTP id YSOeqJZWHe0icYSOeqEdVN; Tue, 22 Aug 2023 16:30:16 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-users@zsh.org X-SourceIP: 100.107.83.37 X-CNFS-Analysis: v=2.4 cv=Ft7DvUnq c=1 sm=1 tr=0 ts=64e4c678 cx=a_exe a=GnyNddD8AJUtD8f3H9Es2Q==:117 a=IvlwODmuRu4A:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=BIr_bM7n-B2mm_SgxYEA:9 a=QEXdDO2ut3YA:10 a=HbQOABYz3jhqdZF7JfnK:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1692714616; bh=fpaELu3VgPmfZETOO27i7/M5XSp4s3cPPzVEG6i92LA=; h=Date:From:To:In-Reply-To:References:Subject; b=u9ARrTMCABfIN1zKB6Cg6WQewJRPcYeg7O1Tyx57rxwIhZCYejWKO1MyKTrX5CzPv Wn5DAJTqrLfIf7E8nWEmQTgMZ2kFOILo4sGibLhn+OS0FhC4WdTNzmqchsGCSoOjKJ Gf92kSHkUoE09oP3mkseyigJbbHPj0LXLW71+H7ua6f4o3ZoRVG30GzFa2OIU7AGgt rUQdWSbsPlkBz+bQ191Ng9T7+f7+gotpzUBIjINnH9Q9cyFgwVotV3z8ggr1XYqe/X OYjaCSE2xxU/YrqMznN6hq+yvs2veCiHaKfIdUDx9YJCMKu6lTS5zjk0Y4fL9C0CDR x5fWIeSNZZ+IQ== Date: Tue, 22 Aug 2023 15:30:16 +0100 (BST) From: Peter Stephenson To: Zsh Users Message-ID: <1044308120.2702706.1692714616599@mail.virginmedia.com> In-Reply-To: References: Subject: Re: Help find Zsh' Bash `read -N1 -p "Put here " var MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer X-Originating-IP: 147.161.224.196 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfCyLOiMsUzrPbWk5nSlphJ2k+wBF9qGXJP1GqWfewmznYKi21DXQnQEfHAB12+Ii8gi8EbEK7Zit+ziOUJhevrjs+MpPJb/dIU4VXwEja/MzMtsMlK+0 vIM4WIRC5Pmoj8+Cs2wdwMefcUi28PxYJI2UT2GjJ17teydECn35ZJ3dX/nzOda7cUOe24wj/y+lDTbFblVjlAqfLsol3sb2dNRDY93yL4tA/f3gSYst5Sj0 X-Seq: 29182 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 22/08/2023 15:19 Budi wrote: > the ... -p "Put here " var > ? read -k 1 REPLY'?Type a character: ' > On 8/22/23, Pier Paolo Grassi wrote: > > the manual offers: > > > > -k [ num ] > > Read only one (or num) characters. All are assigned > > to the first name, without word splitting. This flag is ignored when -q is > > present. Input > > is read from the terminal unless one of -u or -p is > > present. This option may also be used within zle widgets. > > Note that despite the mnemonic `key' this option does > > read full characters, which may consist of multiple bytes if the option > > MULTIBYTE is set. > > > > Pier Paolo Grassi > > > > > > Il giorno mar 22 ago 2023 alle ore 14:23 Budi ha > > scritto: > > > >> What is the Zsh equivalent for Bash: read -N1 -p "Put here " var ? > >> > >> AI chat gave no solution > >> > >> > >