shellwordsversion Documentation on ocaml.org
POSIX shell command word parsing and quoting utilities
Shellwords is an OCaml implementation of POSIX shell word parsing, intended to match the behavior of the Rust shell-words crate. The library follows the parsing rules of the POSIX.1-2008 Shell Command Language, including quoting, escaping, line continuations, and comments, while delberately excluding shell expansions such as globbing, variable substitution, command substitution, and arithmetic expansion. The API is designed for argv-style processing and provides functionality such as splitting command strings into words and producing shell-safe representations of arguments. Behavioral compatibility with the Rust shell-words crate is a primary goal.
| Tags | shell shellwords posix parsing command-line argv quoting splitting string |
|---|---|
| Author | Daniel Fichtinger <daniel@ficd.sh> |
| License | BSD-3-CLAUSE |
| Published | |
| Homepage | https://codeberg.org/ficd/ocaml-shellwords |
| Issue Tracker | https://codeberg.org/ficd/ocaml-shellwords/issues |
| Maintainer | Daniel Fichtinger <daniel@ficd.sh> |
| Dependencies | |
| Source [http] | https://codeberg.org/ficd/ocaml-shellwords/archive/1.0.0.tar.gz md5=be880543665890bd93c725910b01409c sha512=571ad03aef4fdbd88ed05b9c18c92cc33412971f93b51c732f8c83f2bcda3bb116f07715c74403a0366d0258fa0478bc0d502543e71a23454f2722b4aec0d86f |
| Edit | https://github.com/ocaml/opam-repository/tree/master/packages/shellwords/shellwords.1.0.0/opam |
No package is dependent


