5 ms·
Yes, I also use this for automatically capturing command error messages with timestamps into logs: https://github.com/rust-shell-script/bash_cmd_lib/blob/0b0a60
by rustshellscript 6y ago
Yes, I also use this for automatically capturing command error messages with timestamps into logs:
https://github.com/rust-shell-script/bash_cmd_lib/blob/0b0a6000e34460074bbc6f60c483e6cada76ed92/src/cmd_lib.sh#L154 https://github.com/rust-shell-script/bash_cmd_lib/blob/0b0a6...
However this can be fragile in bash script since any sub shell command can fail. I am still wandering how to support it in this rust_cmd_lib library.