429 karma · joined November 17, 2018
The longer term issue, since these are being discontinued, is getting your wifi credentials into the dash button. At the moment I use the amazon app to do that, but I'd guess they'll be removing that functionality. I recall reading someone reverse engineering that process, but I'm not sure what came of it.
I really like the idea of syntax highlighting before the user presses enter.
Any reason you are writing your own posix parser and readline implementation, rather than using existing Rust crates?
I created a demo in the Rust playground [0] which shows that there is no implicit environment variable expansion. Also, the source for `std::process:Command` [1] looks to be calling into libc to perform a fork/exec.
That said, this is rather new territory for me, so let me know if I'm missing something here.
[0] : https://play.rust-lang.org/?version=stable&mode=debug&editio... [1] : https://github.com/rust-lang/rust/blob/master/src/libstd/sys...
I wrote this blog post to document my process of building a simple shell using Rust. I learned a lot about how shells, terminal emulators, and the OS interact by going through this exercise, so I hope this is useful to others as well.
Feel free to reach out if you have any questions.
I wrote this blog post to document my process of building a simple shell using Rust. I learned a lot about how shells, terminal emulators, and the OS interact by going through this exercise, so I hope this is useful to others as well.
Feel free to reach out if you have any questions.