From: "Andreas Kusalananda Kähäri" <andreas.kahari@abc.se>
To: Ellenor Bjornsdottir <ellenor@umbrellix.net>
Cc: 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 19:01:11 +0200 [thread overview]
Message-ID: <ZOTp1xUJ8uUVXHu7@harpo.local> (raw)
In-Reply-To: <4D5D2C80-5208-4E28-98BD-B6C851F178DD@umbrellix.net>
On Tue, Aug 22, 2023 at 03:34:18PM +0000, Ellenor Bjornsdottir wrote:
> 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
A little tip that may help with finding the documentation for zsh
built-ins:
if ((${+aliases[run-help]})); then unalias run-help; fi
autoload -Uz run-help
This will make the run-help command available, which will present the
manual page for the command that you give it as an argument (including
the correct documentation for zsh built-ins). According to the run-help
source code: "Figure out where to get the best help, and get it."
--
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden
.
next prev parent reply other threads:[~2023-08-22 17:02 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
2023-08-22 15:39 ` zeurkous
2023-08-22 17:01 ` Andreas Kusalananda Kähäri [this message]
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=ZOTp1xUJ8uUVXHu7@harpo.local \
--to=andreas.kahari@abc.se \
--cc=budikusasi@gmail.com \
--cc=ellenor@umbrellix.net \
--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).