readline

Started by newdep, December 26, 2005, 05:34:36 AM

Previous topic - Next topic

newdep

I just noticed that when you compile with the latest readline-library shell

command from the newlisp prompt are embedded.. Or i must have always

overlooked that, but its just damm handy..  ;-)



~$newlisp

newLISP v.8.7.5 on linux, execute 'newlisp -h' for more info.



> !date

Mon Dec 26 14:32:45 CET 2005



> !newlisp

newLISP v.8.7.5 on linux, execute 'newlisp -h' for more info.



> >

> !uname -a

Linux zeep 2.4.31 #8 Sun Dec 25 22:04:39 CET 2005 i686 unknown unknown GNU/Linux



> !uptime

 14:33:12 up  6:25,  4 users,  load average: 0.01, 0.02, 0.00

>



> !echo "Nice" > /dev/pts/2

Nice

>
-- (define? (Cornflakes))

Lutz

#1
This is built into newLISP command line processing, works also when compiled without readline library and is mentioned in the manual too. The "!" always must be the first character and no space between "!" and the command :)



I use it frequently to start an editor.



Lutz