Shelisp v.2


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
  • 179

Review Shelisp

  • captcha
New Shell Enhancements software
  • Wallpaper Slideshow Pro  v.4.2.3Wallpaper Slideshow Pro is a great utility for displaying your favorite photos as desktop wallpaper, with lots of different options it offers you complete control on your wallpapers collection. It has support for exif/iptc/xmp and multiple monitors.
  • UltWin  v.1.01.0000UltWin creates an interactive scalable view of the desktop, the Desk View. UltWin creates mini-windows on the Desk View to represent desktop applications and Windows 10 apps.
  • Voice Desktop Clock  v.2.9The main features include Time Voice Preview (male or female), Daily Planner, Shutdown Pc or Log OFF from Windows at any set time, Countdown to the Future Date, Changeable clock hands and frame, Pc Work Time since system start-up, fifty RSS Channels ...