mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 15:39:06 +01:00
add $nu.pid
(#4828)
This commit is contained in:
parent
b342270112
commit
0ff9cc679e
@ -1147,6 +1147,10 @@ pub fn eval_variable(
|
||||
})
|
||||
}
|
||||
|
||||
let pid = std::process::id();
|
||||
output_cols.push("pid".into());
|
||||
output_vals.push(Value::int(pid as i64, span));
|
||||
|
||||
Ok(Value::Record {
|
||||
cols: output_cols,
|
||||
vals: output_vals,
|
||||
|
Loading…
Reference in New Issue
Block a user