Git Product home page Git Product logo

shexp's Introduction

SHEXP - shell scripting for OCaml

Shexp is composed of two parts: a library providing a process monad for shell scripting in OCaml as well as a simple s-expression based shell interpreter. Shexp works on both Unix and Windows.

Libraries

Shexp defines a few libraries that can be used independently.

Shexp_spawn

Shexp_spawn is a small library exposing only one function: Shexp_spawn.spawn. Its purpose is to start command in the background. Shexp_spawn aims to provide a few missing features of Unix.create_process such as providing a working directory as well as improving errors reporting and performances.

Errors such as directory or program not found are properly reported as Unix.Unix_error exceptions, on both Unix and Windows.

On Unix, Shexp_spawn uses vfork by default as it is often a lot faster than fork. There is a benchmark comparing Shexp_spawn.spawn to Unix.create_process in spawn-lib/bench. If you don’t trust vfork, you can set the environment variable SHEXP_USE_FORK to make Shexp_spawn use fork instead.

shexp's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.