From: Ellenor Bjornsdottir <ellenor@umbrellix.net>
To: Budi <budikusasi@gmail.com>, Zsh Users <zsh-users@zsh.org>
Subject: RE: Help find Zsh' Bash `read -N1 -p "Put here " var
Date: Tue, 22 Aug 2023 15:34:18 +0000 [thread overview]
Message-ID: <4D5D2C80-5208-4E28-98BD-B6C851F178DD@umbrellix.net> (raw)
In-Reply-To: <thinkcrap!zeurkous!1692717671.4519@uucp.>
The snarky comments aren't well appreciated, zeurkous. Please don't chastise people for thinking GPT can do things it can't.
OP, GPT can't help you understand or accomplish this task. It's just a language model and it doesn't actually understand anything. It's been missold as this super app that knows everything.
What are you trying to do? Are you trying to read a single character from std. input into ${var}? (I opened the Bash operator's handbook to page... this thing https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html and that looks to be what you were trying to do)
If I open `man zshbuiltins` and scroll down to the info for the `read` command I am told I can pass -k and a number to `read`. I think someone in this thread already mentioned that, without explaining how they got that.
--
Ellenor Bjornsdottir (she)
sysadmin umbrellix.net
next prev parent reply other threads:[~2023-08-22 15:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 12:23 Budi
2023-08-22 12:44 ` Pier Paolo Grassi
2023-08-22 14:19 ` Budi
2023-08-22 14:30 ` Peter Stephenson
2023-08-22 15:21 ` zeurkous
2023-08-22 15:34 ` Ellenor Bjornsdottir [this message]
2023-08-22 15:39 ` zeurkous
2023-08-22 17:01 ` Andreas Kusalananda Kähäri
2023-08-22 17:42 ` Stephane Chazelas
2023-08-22 19:01 ` Bart Schaefer
2023-08-22 19:03 ` Stephane Chazelas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D5D2C80-5208-4E28-98BD-B6C851F178DD@umbrellix.net \
--to=ellenor@umbrellix.net \
--cc=budikusasi@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).