rgardner / bsh-rs

Bash-like shell (builtins, job control, piping) written in Rust
Apache License 2.0
4 stars 0 forks source link

Optional Features #4

Open rgardner opened 9 years ago

rgardner commented 9 years ago
rgardner commented 7 years ago

printenv does not have to be a shell builtin and setenv is not the right name.

setenv:

# set key to value
key=value
# clear the value associated with key
key=

variable name can't start with digit [1]

grammar:

= Ident = r"[[:alpha:][:alnum:]*]" When should the env variable be set? Should bsh get all the way to is_builtin, return true, and then do the work in run_builtin.
rgardner commented 7 years ago

https://www.gnu.org/software/bash/manual/bashref.html