Compare commits

..

4 commits

4 changed files with 6 additions and 5 deletions

2
Cargo.lock generated
View file

@ -4,4 +4,4 @@ version = 3
[[package]] [[package]]
name = "rash" name = "rash"
version = "0.1.0" version = "0.2.0"

View file

@ -1,6 +1,6 @@
[package] [package]
name = "rash" name = "rash"
version = "0.1.0" version = "0.2.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -6,7 +6,8 @@ I want to learn Rust and see how much effort I can put into making an interopera
# Roadmap # Roadmap
- [ ] Execute commands - [x] Execute commands
- [ ] Parse commands
- [ ] Variables - [ ] Variables
- [ ] Environment variables - [ ] Environment variables
- [ ] Builtins - [ ] Builtins
@ -14,6 +15,5 @@ I want to learn Rust and see how much effort I can put into making an interopera
- [ ] `set` - [ ] `set`
- [ ] `alias` - [ ] `alias`
- [ ] `type` - [ ] `type`
- [ ] Parse commands
- [ ] Command-line flags - [ ] Command-line flags
- [ ] PS1 - [ ] PS1

View file

@ -58,7 +58,8 @@ impl Command for UnixProgram {
exit_code exit_code
} else { } else {
error::print_error(format!("{}: command not found", program)); let message = format!("{}: command not found", &program);
error::print_error(message);
ExitCode::new(127) ExitCode::new(127)
} }
} }