gjf2a@20003LPUX:~/solutions320$ cargo run --bin vssh1
Compiling solutions320 v0.1.0 (/home/gjf2a/solutions320)
Finished dev [unoptimized + debuginfo] target(s) in 1.75s
Running `target/debug/vssh1`
/home/gjf2a/solutions320$ cd src/bin
/home/gjf2a/solutions320/src/bin$ grep fn vssh1.rs
fn main() {
fn process_next_line() -> anyhow::Result<Status> {
fn run_command(command: &str) -> anyhow::Result<()> {
fn externalize(command: &str) -> Vec<CString> {
/home/gjf2a/solutions320/src/bin$ cd ..
/home/gjf2a/solutions320/src$ cd ..
/home/gjf2a/solutions320$ ls
Cargo.lock Cargo.toml grep_test.out src target toml.out
/home/gjf2a/solutions320$ exit
fn externalize(command: &str) -> Vec<CString> {
command.split_whitespace()
.map(|s| CString::new(s).unwrap())
.collect()
}