From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19997 invoked by alias); 16 Jan 2018 18:49:48 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23089 Received: (qmail 11623 invoked by uid 1010); 16 Jan 2018 18:49:48 -0000 X-Qmail-Scanner-Diagnostics: from mailout1.lrz.de by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(129.187.255.135):SA:0(-4.2/5.0):. Processed in 2.691435 secs); 16 Jan 2018 18:49:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: zsh.Andy@spiegl.de X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs65.srv.lrz.de Date: Tue, 16 Jan 2018 19:42:38 +0100 From: Andy Spiegl To: Zsh Users Subject: How to read into variable with readline support? Message-ID: <20180116184238.scei6omyfypdgmpb@spiegl.de> Mail-Followup-To: Zsh Users MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-gpg-key: ID C2CB30F0, available on friendly keyservers near you X-gpg-fingerprint: 9051 50B9 13B0 57B9 10FD 48AC 4FA1 209B C2CB 30F0 X-Accepted-File-Formats: ASCII PDF Open/Free Formats - NO proprietory (e.g. Microsoft) files, please X-how-to-quote: http://quoting.is-easy.de/ X-how-to-ask-questions: http://www.catb.org/~esr/faqs/smart-questions.html X-stupid-disclaimers: http://goldmark.org/jeff/stupid-disclaimers/ X-angstklauseln: http://www.heise.de/artikel-archiv/ct/2014/08/136_Angstklauseln User-Agent: NeoMutt/20170609 (1.8.3) I would like to read input from the keyboard (like "read $VAR") but with editing and history support. I'm sure zsh offers this but I am too stupid to find out how. Thanks! Andy -- Always borrow money from a pessimist, he doesn't expect to be paid back.