mirror of
https://github.com/nushell/nushell.git
synced 2025-01-11 08:48:23 +01: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
@ -491,7 +491,10 @@ pub(crate) fn dir_entry_dict(
|
|||||||
span,
|
span,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
vals.push(Value::nothing(span))
|
vals.push(Value::Int {
|
||||||
|
val: md.uid() as i64,
|
||||||
|
span,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
cols.push("group".into());
|
cols.push("group".into());
|
||||||
@ -501,7 +504,10 @@ pub(crate) fn dir_entry_dict(
|
|||||||
span,
|
span,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
vals.push(Value::nothing(span))
|
vals.push(Value::Int {
|
||||||
|
val: md.gid() as i64,
|
||||||
|
span,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user