Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmycuadra/rust-shellwords
Manipulate strings according to the word parsing rules of the UNIX Bourne shell.
https://github.com/jimmycuadra/rust-shellwords
rust shell unix
Last synced: about 1 month ago
JSON representation
Manipulate strings according to the word parsing rules of the UNIX Bourne shell.
- Host: GitHub
- URL: https://github.com/jimmycuadra/rust-shellwords
- Owner: jimmycuadra
- License: mit
- Created: 2017-09-03T10:29:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T19:28:26.000Z (almost 3 years ago)
- Last Synced: 2024-12-01T05:08:08.097Z (about 1 month ago)
- Topics: rust, shell, unix
- Language: Rust
- Size: 8.79 KB
- Stars: 29
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shellwords
Crate **shellwords** provides utilities for parsing strings as they would be interpreted by the UNIX Bourne shell.
* [shellwords](https://crates.io/crates/shellwords) on crates.io
* [Documentation](https://docs.rs/shellwords) for the latest crates.io release## Examples
Split a string into a vector of words in the same way the UNIX Bourne shell does:
``` rust
assert_eq!(split("here are \"two words\"").unwrap(), ["here", "are", "two words"]);
```## Legal
shellwords is released under the MIT license.
See `LICENSE` for details.