Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Help find Zsh' Bash `read -N1 -p "Put here " var



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