Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
#
Lucio Andrés Illanes Albornoz (arab, vxp) 0185bc
# set -o noglob is assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
#
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
EXP_RTL_IFS="${IFS}";
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
ex_rtl_basename() { echo "${1##*/}"; };
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
ex_rtl_date() { command date "+${1:-${DEFAULT_TIMESTAMP_FMT}}"; };
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
ex_rtl_dirname() { echo "${1%/*}"; };
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
ex_rtl_get_var_unsafe() { eval echo \${${1}}; };
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
ex_rtl_pop_IFS() { IFS="${EXP_RTL_IFS}"; };
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
ex_rtl_push_IFS() { EXP_RTL_IFS="${IFS}"; IFS="${1}"; };
Lucio Andrés Illanes Albornoz (arab, vxp) bb98b3
ex_rtl_try_run() { if ex_rtl_test_cmd "${1}"; then "${@}"; fi; };
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
ex_rtl_set_var_unsafe() { [ -n "${2}" ] && eval ${1}=\"${2}\" || return 0; };
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
ex_rtl_test_cmd() { command -v "${1}" >/dev/null; };
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
ex_rtl_toupper() { echo "${1}" | tr a-z A-Z; };
Lucio Andrés Illanes Albornoz 8a04de
ex_rtl_uniq() { echo "${@}" | sed 's/ /\n/g' | awk '!x[$0]++' | paste -s -d" "; };
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
ex_rtl_unset_vars() { while [ ${#} -gt 0 ]; do unset "${1}"; shift; done; };
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
# vim:filetype=sh