Handbook
Glossary
with-real-group ( string/id/f quot -- )
Unix groups
Prev:
?group-id ( string -- id )
Next:
with-effective-group ( string/id/f quot -- )
Vocabulary
unix
.
groups
Inputs
string/id/f
a string or a group id
quot
a
quotation
Outputs
None
Word description
Sets the real group name and calls the quotation. Restores the current group name on success or on error after the call. If the first parameter is
f
, the quotation is called as the current user.
Definition
USING:
kernel
;
IN:
unix.groups
:
with-real-group
( string/id/f quot -- )
over
[
(with-real-group)
]
[
nip
call
]
if
;
inline