3 releases (stable)
1.1.0 | Jun 27, 2020 |
---|---|
1.0.0 | Sep 27, 2018 |
0.1.0 | Sep 3, 2017 |
#122 in Command-line interface
92,370 downloads per month
Used in 53 crates
(35 directly)
10KB
142 lines
shellwords
Crate shellwords provides utilities for parsing strings as they would be interpreted by the UNIX Bourne shell.
- shellwords on crates.io
- Documentation for the latest crates.io release
Examples
Split a string into a vector of words in the same way the UNIX Bourne shell does:
assert_eq!(split("here are \"two words\"").unwrap(), ["here", "are", "two words"]);
Legal
shellwords is released under the MIT license.
See LICENSE
for details.
lib.rs
:
Crate shellwords
provides utilities for parsing strings as they would be interpreted by the
UNIX Bourne shell.
Dependencies
~2.1–3MB
~53K SLoC