summaryrefslogtreecommitdiffhomepage
path: root/subr/rtl.subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr/rtl.subr')
-rw-r--r--subr/rtl.subr14
1 files changed, 0 insertions, 14 deletions
diff --git a/subr/rtl.subr b/subr/rtl.subr
deleted file mode 100644
index b123555f..00000000
--- a/subr/rtl.subr
+++ /dev/null
@@ -1,14 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-rtl_basename() { local _fname="${1##*/}"; printf "%s" "${_fname}"; };
-rtl_date() { command date "+${1:-${DEFAULT_TIMESTAMP_FMT:-"%Y/%m/%d %H:%M:%S"}}"; };
-rtl_set_IFS_nl() { IFS="
-"; };
-rtl_set_var_unsafe() { [ -n "${2}" ] && eval ${1}=\"${2}\" || return 0; };
-rtl_test_cmd() { command -v "${1}" >/dev/null; };
-rtl_uniq() { if [ "${#}" -gt 0 ]; then printf "%s" "${*}" | sed 's/ /\n/g' | awk '!x[$0]++' | paste -s -d" "; fi; };
-rtl_unset_vars() { while [ ${#} -gt 0 ]; do unset "${1}"; shift; done; };
-
-# vim:filetype=sh