v0.12.0
rust-shell-script
released this
10 Mar 01:37
·
294 commits
to master
since this release
Major Changes
- No more runtime lexing and arguments parsing, do lexing and parsing completely at compile time
- No more runtime package dependency except
std
- No more unsafe function calls
- Removed APIs which could lead to exploitable code
API Changes
- Add spawn! and spawn_with_output macros, to allow running
wait_result
to get result later - Renamed
proc_var/proc_var_get/proc_var_set
macros to tls_init/tls_get/tls_set macros - Allow builtin commands and custom defined commands to be used in pipes
- Allow
$[]
to be used for vector variables - Add cmd_lib::set_debug() and cmd_lib::set_pipefail() APIs to control debugging and pipefail behavior
Tests and Examples
Misc
- A bunch of code clean up, including eliminating duplicated code and unnecessary APIs