3 releases (stable)
1.1.0 | Jun 27, 2020 |
---|---|
1.0.0 | Sep 27, 2018 |
0.1.0 | Sep 3, 2017 |
#212 in Command-line interface
129,673 downloads per month
Used in 54 crates
(36 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.2–3MB
~54K SLoC