Add env
This commit is contained in:
parent
5b3aeb4a9f
commit
94ef9dd14a
7 changed files with 151 additions and 39 deletions
|
@ -25,6 +25,13 @@ pub fn main() {
|
|||
for arg in sh_args.iter() {
|
||||
command.arg(arg);
|
||||
}
|
||||
|
||||
command.env("HOME", "initfs:");
|
||||
command.env("PWD", "initfs:bin/");
|
||||
command.env("PATH", "initfs:bin/");
|
||||
command.env("COLUMNS", "80");
|
||||
command.env("LINES", "30");
|
||||
command.env("TTY", &tty);
|
||||
|
||||
match command.spawn() {
|
||||
Ok(mut child) => match child.wait() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue