Shelisp 2
Sponsored Links
Shelisp 2 Ranking & Summary
File size:
0.005 MB
Platform:
Any Platform
License:
GPL (GNU General Public License)
Price:
Downloads:
1166
Date added:
2006-08-20
Publisher:
Dr. Alexandru Corlan
Shelisp 2 description
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.lisp
This 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 shell
Now you can say (the * is already put there by cmulisp):
- !ls
And 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)
8683317618811886495518194401280000000
So, 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) zuzu
5zuzu
The `? 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) " <- this is a fraction"
28/33 <- this is a fraction
- !echo ?(factorial 100) " <- this is a beegnum"
933262154439441526816992388562667004907159682643816
21468592963895217599993229915608941463
97615651828625369792082722375825118521091686400
0000000000000000000000 <- this is a beegnum
Provided that you already entered the factorial definition above.
You may escape the `? with a to have it transfered to the shell command. for example:
- !echo ?(+ 2 3)
?(+ 2 3)
Enhancements:
- Syntax for template strings was added, as well as wrappers for TeX/LaTeX, gs, ls, md5sum, mktemp, and other commands.
- A recursive version of md5sum that can also compute signatures of directory contents is included.
To run shelisp, say at the command prompt:
lisp -load shelisp.lisp
This 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 shell
Now you can say (the * is already put there by cmulisp):
- !ls
And 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)
8683317618811886495518194401280000000
So, 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) zuzu
5zuzu
The `? 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) " <- this is a fraction"
28/33 <- this is a fraction
- !echo ?(factorial 100) " <- this is a beegnum"
933262154439441526816992388562667004907159682643816
21468592963895217599993229915608941463
97615651828625369792082722375825118521091686400
0000000000000000000000 <- this is a beegnum
Provided that you already entered the factorial definition above.
You may escape the `? with a to have it transfered to the shell command. for example:
- !echo ?(+ 2 3)
?(+ 2 3)
Enhancements:
- Syntax for template strings was added, as well as wrappers for TeX/LaTeX, gs, ls, md5sum, mktemp, and other commands.
- A recursive version of md5sum that can also compute signatures of directory contents is included.
Shelisp 2 Screenshot
Shelisp 2 Keywords
Shelisp 2
program that provides
very short
Unix shell
Short Program
Shelisp
command
shell
running
2
lisp
Shelisp 2
Shells
System
Bookmark Shelisp 2
Shelisp 2 Copyright
WareSeeker periodically updates pricing and software information of Shelisp 2 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Shelisp 2 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
shell script
sasha cohen short program
unix shell script tutorial
unix shell if
unix shell script
sasha cohen's short program
unix shell programming example programs
commander
shell federal credit union
unix shells
unix shell find
ladies short program
ten commandments
shell gas
unix shell math
unix shell programming tutorial
command and conquer generals
shell gas card
Related Software
Sishell provides a reverse shellcode kit for x86 Linux, FreeBSD, NetBSD, and OpenBSD. Free Download
YMShell is a console based yahoo messenger client. Free Download
wdshell is a tool that runs shell commands using RubyWebDialogs. Free Download
CURSEL project is a freeware FMLI implementation. Free Download
Bash is the shell, or command language interpreter, that will appear in the GNU operating system. Free Download
xen-shell is a simple console application which allows you to easily allow the owner of a single Xen instance to control it. Free Download
SecPanel serves as a graphical user interface for managing and running SSH (Secure Shell) and SCP (Secure Copy) connections. Free Download
SQL::Shell is a command interpreter for DBI shells. Free Download
Latest Software
Popular Software
Favourite Software