elvish: github.com/elves/elvish/pkg/eval/unix Index | Files

package unix

import "github.com/elves/elvish/pkg/eval/unix"

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

Package Files

umask.go unix.go

Constants

const ExposeUnixNs = true

ExposeUnixNs indicate whether this module should be exposed as a usable elvish namespace.

Variables

var Ns = eval.Ns{
    "umask": UmaskVariable{},
}

Ns is an Elvish namespace that contains variables and functions that deal with features unique to UNIX-like operating systems. On

type UmaskVariable Uses

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 Uses

func (UmaskVariable) Get() interface{}

Get returns the current file creation umask as a string.

func (UmaskVariable) Set Uses

func (UmaskVariable) Set(v interface{}) error

Set changes the current file creation umask. It can be called with a string (the usual case) or a float64.

Package unix imports 8 packages (graph). Updated 2020-05-30. Refresh now. Tools for package owners.