mirror of
https://github.com/nushell/nushell
synced 2024-11-15 17:27:58 +00:00
return gid and uid in numbers if name not found (#6684)
* return git and uid in numbers if name not found * fmt
This commit is contained in:
parent
34c8b276ab
commit
2f1711f783
1 changed files with 8 additions and 2 deletions
|
@ -491,7 +491,10 @@ pub(crate) fn dir_entry_dict(
|
|||
span,
|
||||
});
|
||||
} else {
|
||||
vals.push(Value::nothing(span))
|
||||
vals.push(Value::Int {
|
||||
val: md.uid() as i64,
|
||||
span,
|
||||
})
|
||||
}
|
||||
|
||||
cols.push("group".into());
|
||||
|
@ -501,7 +504,10 @@ pub(crate) fn dir_entry_dict(
|
|||
span,
|
||||
});
|
||||
} else {
|
||||
vals.push(Value::nothing(span))
|
||||
vals.push(Value::Int {
|
||||
val: md.gid() as i64,
|
||||
span,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue