Kalpana Kalpana (Editor)

Scsh

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Initial release
  
October 31st, 1994

Development status
  
Active

Operating system
  
Unix-like

Stable release
  
0.6.7 / 16 May 2006

Written in
  
Scheme

Developer(s)
  
Olin Shivers Brian Carlstrom Martin Gasbichler Mike Sperber

Scsh is a POSIX API layered on top of the Scheme programming language in a manner to make the most of Scheme's capability for scripting. It is limited to 32-bit platforms but there is a development version against the latest scheme48 that works in 64-bit mode.

Contents

Features

Scsh includes these notable features:

  • Library support for list, character, and string manipulations;
  • Regular expressions manipulation support using scheme regular expressions, a little languages approach to the capabilities;
  • Strong networking support;
  • High-level support for awk like scripts, integrated into the language as macros;
  • Abstractions supporting pseudo terminals;
  • A shell language, modeled using quasi-quotation.
  • Example

  • Print a list of all the executables available in the current PATH to the standard output:
  • "Acknowledgments"

    The reference manual for Scsh includes a spoof Acknowledgments section written by Olin Shivers. It begins

    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.

    References

    Scsh Wikipedia