Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Command line preprocessing

by stefan k (Curate)
on Aug 31, 2001 at 19:03 UTC ( [id://109413]=note: print w/replies, xml ) Need Help??


in reply to Command line preprocessing

Hi,
I'm not sure if this could really work, but I'd take a look into /etc/inputrc (or ~/.inputrc) and try to fiddle around with the settings. Usually the return-key is bound to accept-line. Maybe one could set that to something like (pseudocode)
kill-whole-line-to-register system-command-with-register-content-as-arg paste-system-command-output accept-line
but I have never seen more than one command to be bound to a key neither the creation of own commands.
Of course this would be readline and could thus be used in a variety of other programms (like gnuplot)
Just my humble first guess...

Regards... Stefan
you begin bashing the string with a +42 regexp of confusion

Replies are listed 'Best First'.
Re: Re: Command line preprocessing
by suaveant (Parson) on Aug 31, 2001 at 19:36 UTC
    this looks promising... but I don't see anything with system-command in the readline docs... :(

                    - Ant
                    - Some of my best work - Fish Dinner

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://109413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-18 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found