Scsh

Uses your system voice; voice and rate in settings.

Snapshot

≈ 3 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Scsh (a Scheme shell) is command-line shell derived from Scheme 48, an implementation of the Scheme programming language. It turns common POSIX shell features (string processing, file-name matching, input/output redirection, etc.) into a Scheme application programming interface in a manner to make the most of Scheme's ability for scripting. It is free and open-source software released under the BSD-3-Clause license. Scsh, in its original form (a Scheme 48 fork), is limited to 32-bit platforms. There is a development version in the form of a Scheme 48 library that works in 64-bit mode.

Scsh (a Scheme shell) is command-line shell derived from Scheme 48, an implementation of the Scheme programming language. It turns common POSIX shell features (string processing, file-name matching, input/output redirection, etc.) into a Scheme application programming interface in a manner to make the most of Scheme's ability for scripting. It is free and open-source software released under the BSD-3-Clause license. Scsh, in its original form (a Scheme 48 fork), is limited to 32-bit platforms. There is a development version in the form of a Scheme 48 library that works in 64-bit mode.

Features

Scsh includes these notable features: A shell language, modeled using quasi-quotation; Library support for list, character, and string manipulations; Regular expressions manipulation support using scheme regular expressions, a domain-specific language (DSL), or little languages, approach to the abilities; High-level support for awk-like scripts, integrated into the language as macros; Full access to the POSIX API plus BSD sockets, resulting in strong networking support; Abstractions supporting pseudo terminals.

Example

Translation of the shell pipeline gunzip : (& (| (gunzip) (detex) (spell) (lpr -Ppulp)) ; background a pipeline ( Print a list of all the executables available in the current PATH to the standard output: !/usr/local/bin/scsh -s !# (define (executables dir) (with-cwd dir (filter file-executable? (directory-files dir #t)))) (define (writeln x) (display x) (newline)) (for-each writeln (append-map executables ((infix-splitter ":") (getenv "PATH"))))

"Acknowledgments"

The reference manual for Scsh includes a spoof Acknowledgments section written by Olin Shivers. It starts: Who should I thank? My so-called "colleagues", who laugh at me behind my back, all the while becoming famous on my work? My worthless graduate students, whose computer skills appear to be limited to downloading bitmaps off of netnews? My parents, who are still waiting for me to quit "fooling around with computers," go to med school, and become a radiologist? My department chairman, a manager who gives one new insight into and sympathy for disgruntled postal workers? and concludes with: Oh, yes, the acknowledgements. I think not. I did it. I did it all, by myself.

See also

Unix shell Comparison of command shells

References

External links

Sourceforge project page Downloads

Text derived from https://en.wikipedia.org/w/index.php?oldid=1369915394 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

3 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.