Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How can one get editable, completing *and* history retrieval read command?
- X-seq: zsh-users 13215
- From: "Rocky Bernstein" <rocky.bernstein@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: How can one get editable, completing *and* history retrieval read command?
- Date: Thu, 11 Sep 2008 07:42:47 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=ShmduWV4nrNc70Xmbx/TN+mYt/fTko3HmeO7eNS+TEk=; b=AogLb4RX/shV4mkao/KfOIhXFNTmHX+lL65fMG0CsJ33H5aWbiubbx7qGipJLS5z1n 8tH39eVf5/Q6rEqv9yUrX9nDFWiAnOg4ZPdRIKnVZ6WViX2BDYE1bS3x/HVRPjeib9tu E5C9qEXdFCQAW+6l/sPXxS0H77xaOK1wicMl0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=fJIPNrUG1fCS+AFGVqkLAB9FYqzLP816uG2xkuW+qd55wHKUApiLmWSxCCD+kFtFDD bxJB8o0W9fSBVM5zRYORqavYZZ4k5I3UpnX2Rnvv18+FI9ndO3b6C+woDKetUgTWZ3EU 8RsEwiKUOirij6qNdBXpNjcg9KQEAmLqiLIA8=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
In zsh how can I read a line in a script with readline-like editing and history retrieval as happens in an interactive shell?
I see there is both "vared" and "read" and "vared" would work if it handled history retrieval like an interactive prompt does. Also, I would need a way to determine if a given file descriptor is interactive or not. (This last aspect I have a feeling I can figure out some way, although perhaps not the best way).
Thanks
Messages sorted by:
Reverse Date,
Date,
Thread,
Author