newLISP Fan Club

Forum => newLISP in the real world => Topic started by: newdep on December 26, 2005, 05:34:36 AM

Title: readline
Post by: newdep on December 26, 2005, 05:34:36 AM
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

>
Title:
Post by: Lutz on December 26, 2005, 05:57:49 AM
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