Shelisp v.2

Advertisement
Advertisement

Shelisp is a very short program that provides mechanisms for composing and running Unix shell (particularly bash) commands and constructs from Common Lisp.To run shelisp, say at the command prompt:lisp -load shelisp.lispThis should start CMU Common Lisp and provide the prompt, *. A more convenient form could be to start emacs, and issue the command M-x cmulisp that will start an `inferior lisp' mode with cmu; then, say:(load "shelisp.lisp")The bang (!) escape to shellNow you can say (the '*' is already put there by cmulisp):* !lsAnd it will execute the shell ls command (by running a bash instance and passing the command to it.Of course, you are actually in Lisp. You can try this:* (defun factorial (x) (if (zerop x) 1 (* x (factorial (1- x)))))FACTORIAL* (factorial 33)8683317618811886495518194401280000000So, if you enter ``!'' the rest of the line (until the first end of line that is not escaped with a ``'') is interpreted as a bash command and the result is printed on the standard output.Now try:* !echo ?(+ 2 3) zuzu5zuzuThe `?' is the 'lisp escape'. It is followed by an s-expression which is read, executed and printed (with princ) and the printed result replaces the `?' and the expression in the shell command. It can be any Lisp expression.* !echo ?(+ 2/3 2/11) "

Shelisp is a very short program that provides ... Shelisp is a very short program that provides mechanisms for composing and running Unix shell.

 
  • Shareware
  • 10 Kb
  • 186
 
 

Review Shelisp

  • captcha
 
 
New Shell Enhancements software
  • GiMeSpace Desktop Extender  v.2.3.7.145GiMeSpace Desktop extender is a small and very simple program for Windows XP or later versions that will allow you to expand your desktop without any limits. When you move your mouse to the edge of your screen you will notice your unlimited desktop.
  • GiMeSpace Desktop Extender 3D  v.3.1.7.57GiMeSpace Desktop extender 3D is a small and very simple program for Windows that will allow you to expand your desktop without any limits. Navigate in 3 directions: left-right, up-down, zoom in-out.
  • GiMeSpace Free Edition  v.1.2.1.34GiMeSpace Free Edition is a small and very simple program for Windows XP or later versions that will allow you to expand your desktop without any limits. When you move your mouse to the edge of your screen you will notice your unlimited desktop.
  • Confidential Free  v.1Confidential helps you and your team to be compliant to legal regulations, contractual obbligations and internal policies, by allowing you to tag files, with different levels of confidentiality, along with your team.
  • Quasi  v.0.87Quasi is a Python shell with pluggable contexts.
  • BLogbook  v.1bLogbook is a shell script that makes it easy to keep notes.