Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Help find Zsh' Bash `read -N1 -p "Put here " var
- X-seq: zsh-users 29181
- From: Budi <budikusasi@xxxxxxxxx>
- To: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Help find Zsh' Bash `read -N1 -p "Put here " var
- Date: Tue, 22 Aug 2023 21:19:32 +0700
- Archived-at: <https://zsh.org/users/29181>
- In-reply-to: <CAP+y1xDnTpgZFayVLTE0m2w7cehuPj1KNBVQ=UZGhhY6CZH=8w@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAH0GyZB8iFL0yqbEVxEhe4qPN8hNPk9SxoPvd5X-_p_A+1nf7A@mail.gmail.com> <CAP+y1xDnTpgZFayVLTE0m2w7cehuPj1KNBVQ=UZGhhY6CZH=8w@mail.gmail.com>
the ... -p "Put here " var
?
On 8/22/23, Pier Paolo Grassi <pierpaolog@xxxxxxxxx> 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 <budikusasi@xxxxxxxxx> ha
> scritto:
>
>> What is the Zsh equivalent for Bash: read -N1 -p "Put here " var ?
>>
>> AI chat gave no solution
>>
>>
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author