osx (util v1.3.5)

View Source

OS supporting commands

Author: Serge Aleynikov saleyn@gmail.com

Summary

Functions

Return a path where the use of ".." to indicate parent directory has been resolved. Currently does not accept relative paths. Derived from https://github.com/mk270/realpath Copyright 2020 Martin Keegan

Return a canonicalized pathname, having resolved symlinks to their destination. Modelled on realpath(3). Derived from https://github.com/mk270/realpath Copyright 2020 Martin Keegan

Functions

command(Cmd)

-spec command(string()) -> {integer(), list()}.

command/2

-spec command(string(), list() | undefined | fun((list(), any()) -> any())) -> {integer(), any()}.

command(Cmd, Opt, Fun)

-spec command(string(), list(), undefined | fun((list(), any()) -> any())) -> {integer(), any()}.

normalpath/1

-spec normalpath(list()) -> string().

Return a path where the use of ".." to indicate parent directory has been resolved. Currently does not accept relative paths. Derived from https://github.com/mk270/realpath Copyright 2020 Martin Keegan

realpath/1

-spec realpath(string()) -> string().

Return a canonicalized pathname, having resolved symlinks to their destination. Modelled on realpath(3). Derived from https://github.com/mk270/realpath Copyright 2020 Martin Keegan

status(Status)

-spec status(integer()) ->
                {status, ExitStatus :: integer()} | {signal, Singnal :: integer(), Core :: boolean()}.