Re: an editable history for every stdin

From: Stephane CHAZELAS (stephane_chazelas_at_yahoo.fr)
Date: 09/15/03


Date: 15 Sep 2003 13:21:41 GMT

Pat LaVarre wrote:
> How do I make stdin editable and recall its history, when I discover
> some unfriendly interactive program reads command lines from stdin
> without helping me edit or recall those lines?

Look at what zsh did with nslookup.

Get zsh 4.1, issue

autoload nslookup
nslookup

functions nslookup
for the details. You can easily adapt it for any command.

-- 
Stéphane


Relevant Pages

  • Re: an editable history for every stdin
    ... >> some unfriendly interactive program reads command lines from stdin ... > Look at what zsh did with nslookup. ...
    (comp.unix.shell)
  • NSLOOKUP overflow allows arbitrary command execution
    ... However let me further expand that NSLOOKUP works in two ... documentationfor the nslookup command for description of modes and sub ... then enter the long string). ... and wind up at the command prompt which looks like so (note this is ...
    (NT-Bugtraq)
  • Re: Enhancing DCL, was: Re: How do I add 2 letters to a long
    ... on systems with PERL available (not too many 6.2 systems have ... I would use a perl 'command line' or script to extend a filter to ... because it's a security problem. ... If I recall correctly, it was in an HP-internal OpenVMS notes ...
    (comp.os.vms)
  • Re: DCL versus Unix CLIs, was: Re: File output like Unix
    ... I don't know of any current plans to enhance the terminal driver within this area, as these are non-trivial changes to the terminal driver -- the driver currently knows about what is in its active buffer, and not about multiple-line recall. ... That worked as a way to get one-line command line recall on a V3 system, since you were really interacting with the V4 terminal driver. ... As for a variant on filename completion, there was an interesting DWIM command interface project with an old system monitoring package, VAXsim. ...
    (comp.os.vms)
  • Re: Enhancing DCL, was: Re: How do I add 2 letters to a long
    ... This way I could use my FILTER command ... procedure search for strings in the recall buffer. ... recall history buffer of my interactive session from a command ... the RECALL command from within a *DCL* command procedure. ...
    (comp.os.vms)