Documentation
¶
Overview ¶
Package unix exports an Elvish namespace that contains variables and functions that deal with features unique to Unix-like operating systems. On non-Unix operating systems it exports an empty namespace.
Index ¶
Constants ¶
const ExposeUnixNs = true
ExposeUnixNs indicate whether this module should be exposed as a usable elvish namespace.
Variables ¶
var Ns = eval.BuildNs(). AddVars(map[string]vars.Var{ "umask": UmaskVariable{}, "rlimits": rlimitsVar{}, }).Ns()
Ns is an Elvish namespace that contains variables and functions that deal with features unique to Unix-like operating systems.
Functions ¶
This section is empty.
Types ¶
type UmaskVariable ¶
type UmaskVariable struct{}
UmaskVariable is a variable whose value always reflects the current file creation permission mask. Setting it changes the current file creation permission mask for the process (not an individual thread).
func (UmaskVariable) Get ¶
func (UmaskVariable) Get() any
Get returns the current file creation umask as a string.
func (UmaskVariable) Set ¶
func (UmaskVariable) Set(v any) error
Set changes the current file creation umask. It can be called with a string or a number. Strings are treated as octal numbers by default, unless they have an explicit base prefix like 0x or 0b.