4 ms·
Show HN: Rust for Shell Scripting
- ktpsns 7y agoTip: In she'll context, it is good style to always print argv[0] in log lines, ie the program name. When myscript.rs reports INFO: blabla It should better report myscript.rs: blabla or myscript.rs: INFO: blabla This helps identifying the source when the script is part of a series of pipes, or running in background, etc
- stevekablink 7y agoThis is such a good idea. When shell scripts are all written in Rust, Unix will be a safe and secure operating system.