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 29184
- From: Ellenor Bjornsdottir <ellenor@xxxxxxxxxxxxx>
- To: Budi <budikusasi@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: RE: Help find Zsh' Bash `read -N1 -p "Put here " var
- Date: Tue, 22 Aug 2023 15:34:18 +0000
- Archived-at: <https://zsh.org/users/29184>
- Autocrypt: addr=ellenor@xxxxxxxxxxxxx; keydata= mQGNBGDs5W4BDACykgAyEkUz0hrxvnkG88s+LhbsgNp3Qp1KSgeH//iVXqTyfwudrkuZ38zc7T83 wFW5sUwcOGZxS56sNO8hHKrpMoO4wkNkS93/IWHHv2yLvIzZ9EJg1GiJ0KB+O/tYYd9m7W9Sp4AG fspIBjkOYr5cSKQtw13HQwpzXF5xMUq9O+bj50cbrjSrc7aGBZWGPhBqAMpz4w+pJWDX+Vs9itqV 49TPg5+tZi3i6v+MWGcSE1fcWEB5SYz5/MjWOzVA1GlXVyamMbZajy4Egfvg4wytWmLvg8MkaJyl iMl2jN1tGWXjlJh4YhdZhuQbAOCMTlM7W2YbAevY64PzXn/CPFvoLZ4uxk6dtMEkIP8zAMjf5wkz BqKjx0XC5XhNiNosA4R0G5ZU8TuRSG/r1CAZz2eVa5O3UIxLeodz++uNTJ+9Uqcm3CSfDR2G+PrV gj+wupIhgb3+h/ij4lmt8klUNyerdTXaXAvn09qnJlCrjidlG4zn29IZoC3kjkuGCk6qI7cAEQEA AbQyRWxsZW5vciBBZ25lcyBCam9ybnNkb3R0aXIgPGVsbGVub3JAdW1icmVsbGl4Lm5ldD6JAbAE EwEKABoECwkIBwIVCgIWAQIZAAWCYOzmUQKeAQKbAwAKCRBP96eIZrlNpveOC/4yfT3kzvqKCPT1 8yopQP8EeZC4lOgyvPmYYZCNjNDc/DeA5FfIiwwBg70PxjnZ0HkPeuoRHbXl0xgk8rhXovwp0/Zq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QGZxmuwLIzcbNu3bxjKnlHw48t4WPR7kPFPymHM8/R0260ILP31bJmlfndbL5yEXtflqoMf/ Z0H86dlfKugVTGqawvvSp4kEQci4ocwhmkKtL8TQRLOiNpjNPJg52sjbIohpPnloL3+uoXihc6O7 6w5vNs3lpwu8rdxY2GnwNKT2vTS5vbCnsPPaspzL1yog7HBlnaccwVD6XfgacH5bItepnzGVxMvg rpOUHJQenQZ42sDlgiDLUijzicnZH+94N3XCeHCtNWN1pz7LhFtplY1Ch2jfb3exR7vF75Lol3FM 9KsahG49MNfxTRezJhGNhqaExdEeHGa3wGoc2qkrsgJR9ppvt+6uxYO71Yzr+uIKAx5Fb3y5PecK cXfK11ufY75C1xOcGlvxnrZ1bbuZHHiFtsDpOcrngyOy2KURskH1NfnaDUKhvjiTp76Q93rkg0Rf xhKSgCRcC1XiUmkFpbq/QON0
- In-reply-to: <thinkcrap!zeurkous!1692717671.4519@uucp.>
- List-id: <zsh-users.zsh.org>
- References: <CAH0GyZB8iFL0yqbEVxEhe4qPN8hNPk9SxoPvd5X-_p_A+1nf7A@mail.gmail.com> <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author