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,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17782 invoked from network); 22 Aug 2023 12:46:06 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Aug 2023 12:46:06 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1692708366; b=DPSFTkmkuLT9JQ4Rs4kyou3htULCglu/RYQ1RxHGPSOeT0UwDvRkN/34HK414rxXJ2KIh+5jNM BXk+b6Jn6+c+sPC1G3oegaVeDk7tUFpKGWA+HM5ukvj8klEoPxSeeENpYQIgS2XJBke28FewC2 d8gczOSsjYkzSHCJMLuVzlmwNCGQ+5nSWV+4LAUDGuElmG1Z14PNwK3ESXqdn2X187cNjMC8+1 eFfPq23YVIq8ohR1+0+7wUnMg0dypsIqUxoVhskhXhlAHH9a6lPl0EU6jElr6rho1JkZA9AOdD qwb3RuGKTDb6o7b3K9ob/jmPVhGmPPtvsLCBzh9llIcYHg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yw1-f169.google.com) smtp.remote-ip=209.85.128.169; dkim=pass header.d=gmail.com header.s=20221208 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=1692708366; bh=ttNr032OChSM4nCGSykpZhRU1K2SLHBoiSF2M6qseqQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=FCNPH/AhXHEkb79RyCcxe7ZDIHs5L2FN9jf+wyaBB1075kGR/E1+SlNyHIFaLtT1CBEZjZKxvT 20h8AyRnHXnjXvNeN8lFwsqJgbmOL2BR3xyUsF+GjryOOmC6xUUr4L/J5/GwfUDrB/dbdSVvSC Ph09+n9cCsMKVISPIflBiruLINvvTwCw+rHAKuHVdgrTrtFyVSX+E0/mprVOX2RnJd69kZepUt FvpINt5Fz28PXOaLR5CZGUD8JuFHGKHXaXtWJEOIY04swy1np13x07/kI+8e/MKGMAEoHIPKcz iYIGFTqFKolF4ms0vf/nF3vke+/guEjaAj8ousdqpY3JKA==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Ap1FPQLqSVpWKcasdYf3cSSaRE2Mhm+eWBJPU5SB2bE=; b=p2TxamwpoovvDvLPyCcEiW229j edbRNAvU7IxSWsFnE8pTfsl+y4dzPaghGlO85G4vOD9viUS1ZVZVDwBr5hgmWBOsR9Ph1+p8r/iSN kwEsoRthAsRqGuim/wbEpAl2YR+vNrkrtMnX/3GNawbyr6KdmW8AzpyzwpqwXgoui/vEczpOhvvrd vF076E5L75jyL0EpKpLshY9hSvAtX+Zsit37uCC+Y+/JFpkNgJ/OVxGEcBa1L+tngrR29Vx8H2qCn yNy8g3HDRMxOVsqhNTt6ojQtFyKZ5AgQQziiCgTKMMDOKeuk2VuYmlqzfUOBvvLICNwa7+KR/3phP S0sJ+Gug==; Received: by zero.zsh.org with local id 1qYQlq-0002Dy-7e; Tue, 22 Aug 2023 12:46:06 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yw1-f169.google.com) smtp.remote-ip=209.85.128.169; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yw1-f169.google.com ([209.85.128.169]:62788) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qYQkr-0001OD-Gi; Tue, 22 Aug 2023 12:45:06 +0000 Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-58d41109351so75038977b3.1 for ; Tue, 22 Aug 2023 05:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692708304; x=1693313104; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ap1FPQLqSVpWKcasdYf3cSSaRE2Mhm+eWBJPU5SB2bE=; b=BdDGfW0BJ0rVkqYFQvKpbIcZWKL67q+g3K8/vd/YB/ayMLFVYGsb3W2fPKgARSy+Iw NaXIRbwqtkyeuSyptj1o2BLGQ4i6EDA7x8zPIfDg2jVJefPf6SGdj6GiaiJIf06bYHpl sezwUOurDagS7cYfhkDPzni6GON6uWwE1lE66lQyoCAb7usHTIeLQSHMiY10jdMmfs8U PmCMgq3Q32MRVAgZRUgOPcwfJ9nlEZFB2Dhlf6+VLUcSye1fjjs/qWvoNpTbjINUHN6/ oB5Mn6bOgvMdJIway8GVG3UYK54WHJdFsgHN6zgRvXWDY+0Ugavb8oyL6A6n7BtcqFtz hsag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692708304; x=1693313104; h=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=Ap1FPQLqSVpWKcasdYf3cSSaRE2Mhm+eWBJPU5SB2bE=; b=calszg4wWEAbnV7nS/IQT7iZed06ZX/h9iApmEPVagMbNZ380pIQ1pAoJ1ueKiRZi2 QA1X2DhJ2L6wuNavXY6FRGGK2oEk7td1ztjvkDpVie2O1T4Yl6AiNTOg8/Q3C+Zh0JPW EQnW+hY+F1BTb2FjndnCvmWHdYpJAHSEVzAE0pWqxLjwfjjeY6F+M1c3LYW/XGMuUmvo FFca2/lEFXDTWIzMQUCb+GFIBya0+8YQFamZm8DtG+az2CkcBxWDD9kvCjwsTjyjlMYd CyX1xNU4GND1zQEaTQGZPpylTpjxEYcR+clkVaUNJgusUSL0iXPXuJz6TcDpbXfLcRWY B2ZQ== X-Gm-Message-State: AOJu0Yw5xVUwTmd65Pz6Gb04Paq0lLSvsePLBuU8J/2kdeQ8RjsCNka7 KbMygk0NR2Y/tZDqpZOSY8T6/WAEJkgBrNlHm1Q= X-Google-Smtp-Source: AGHT+IFqxFDbcKGDig1nxO95XLVyZmGKlOuBroHAXrTU+Ah/8A2PA1vTUkmdSp2kNTygAcxa8NsKpv2kq2NApJEjC0c= X-Received: by 2002:a0d:d504:0:b0:56c:f547:e058 with SMTP id x4-20020a0dd504000000b0056cf547e058mr7710127ywd.18.1692708304297; Tue, 22 Aug 2023 05:45:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Tue, 22 Aug 2023 14:44:26 +0200 Message-ID: Subject: Re: Help find Zsh' Bash `read -N1 -p "Put here " var To: Budi Cc: Zsh Users Content-Type: multipart/alternative; boundary="0000000000002fa3370603825d03" X-Seq: 29179 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: --0000000000002fa3370603825d03 Content-Type: text/plain; charset="UTF-8" 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 > > --0000000000002fa3370603825d03 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
the manual offers:

=C2=A0 -k [ num ]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0Read only one (or num) characters.=C2=A0 All are assigned to the first n= ame, without word splitting.=C2=A0 This flag is ignored when -q is present.= =C2=A0 Input
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0is read from the terminal unless one of -u or -p is presen= t.=C2=A0 This option may also be used within zle widgets.
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Note that des= pite the mnemonic `key' this option does read full characters, which ma= y consist of multiple bytes if the option MULTIBYTE is set.
<= br clear=3D"all">
Pier Paolo Grassi
=

Il giorno mar 22 ago 2023 alle ore 14:23 Budi <budikusasi@gmail.com> ha scritto:
=
What is the Zsh equivalen= t for Bash: read -N1 -p "Put here " var ?

AI chat gave no solution

--0000000000002fa3370603825d03--