Main > System > Shells >

Shelisp 2

Shelisp 2

Sponsored Links

Shelisp 2 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.005 MB
Platform: Any Platform
License: GPL (GNU General Public License)
Price:
Downloads: 1166
Date added: 2006-08-20

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.

Shelisp 2 Screenshot

Advertisements

Shelisp 2 Keywords

Bookmark Shelisp 2

Hyperlink code:
Link for forum:

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

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
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