Handbook
Glossary
with-effective-group ( string/id/f quot -- )
Unix groups
Prev:
with-real-group ( string/id/f quot -- )
Vocabulary
unix
.
groups
Inputs
string/id/f
a string, a group id, or f
quot
a
quotation
Outputs
None
Word description
Sets the effective group name and calls the quotation. Restores the effective 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-effective-group
( string/id/f quot -- )
over
[
(with-effective-group)
]
[
nip
call
]
if
;
inline