* Can zsh perform read -i
@ 2023-08-15 14:11 Budi
2023-08-15 17:42 ` Lawrence Velázquez
0 siblings, 1 reply; 3+ messages in thread
From: Budi @ 2023-08-15 14:11 UTC (permalink / raw)
To: zsh-users
What is zsh equivalent for :
read -e -i "This is pre written text " t
get user into readline with a pre written text ready to edit then save
to a variable ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can zsh perform read -i
2023-08-15 14:11 Can zsh perform read -i Budi
@ 2023-08-15 17:42 ` Lawrence Velázquez
2023-08-15 18:07 ` Pier Paolo Grassi
0 siblings, 1 reply; 3+ messages in thread
From: Lawrence Velázquez @ 2023-08-15 17:42 UTC (permalink / raw)
To: Budi; +Cc: zsh-users
On Tue, Aug 15, 2023, at 10:11 AM, Budi wrote:
> What is zsh equivalent for :
>
> read -e -i "This is pre written text " t
https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html#index-read
> get user into readline
zsh does not use readline.
--
vq
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can zsh perform read -i
2023-08-15 17:42 ` Lawrence Velázquez
@ 2023-08-15 18:07 ` Pier Paolo Grassi
0 siblings, 0 replies; 3+ messages in thread
From: Pier Paolo Grassi @ 2023-08-15 18:07 UTC (permalink / raw)
To: Lawrence Velázquez; +Cc: Budi, zsh-users
[-- Attachment #1: Type: text/plain, Size: 510 bytes --]
i think you should use vared, eg:
VARIABLE="somevalue"vared -p "PROMPT: " VARIABLE
Il giorno mar 15 ago 2023 alle 19:47 Lawrence Velázquez <larryv@zsh.org> ha
scritto:
> On Tue, Aug 15, 2023, at 10:11 AM, Budi wrote:
> > What is zsh equivalent for :
> >
> > read -e -i "This is pre written text " t
>
>
> https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html#index-read
>
> > get user into readline
>
> zsh does not use readline.
>
> --
> vq
>
> --
Pier Paolo Grassi
[-- Attachment #2: Type: text/html, Size: 3897 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-15 18:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-15 14:11 Can zsh perform read -i Budi
2023-08-15 17:42 ` Lawrence Velázquez
2023-08-15 18:07 ` Pier Paolo Grassi
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).