aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.bash_utils
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-04-15 08:18:40 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-04-15 08:18:40 +0300
commit537752c60cf2e11ac67825be9f98959e57853e63 (patch)
treebce7d974a53c50a01edf2c20370b9d89d5ed4479 /%HOME%/.bash_utils
parentos.sh: package_list -> pkg_list (diff)
downloadlinux-home-537752c60cf2e11ac67825be9f98959e57853e63.tar.gz
linux-home-537752c60cf2e11ac67825be9f98959e57853e63.zip
str_split: interface update
Diffstat (limited to '')
-rw-r--r--%HOME%/.bash_utils/text.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/%HOME%/.bash_utils/text.sh b/%HOME%/.bash_utils/text.sh
index 15fb17f..e27d392 100644
--- a/%HOME%/.bash_utils/text.sh
+++ b/%HOME%/.bash_utils/text.sh
@@ -138,10 +138,10 @@ str_split() (
shift
case "$key" in
-h|--help)
- echo "usage: ${FUNCNAME[0]} [-h|--help] [-0|-z|--zero] [--] STR DELIM"
+ echo "usage: ${FUNCNAME[0]} [-h|--help] [-0|--null|-z|--zero] [--] STR DELIM"
return 0
;;
- -0|-z|--zero)
+ -0|--null|-z|--zero)
fmt='%s\0'
;;
--)
@@ -160,7 +160,7 @@ str_split() (
args+=("$@")
if [ "${#args[@]}" -ne 2 ]; then
- echo "usage: ${FUNCNAME[0]} [-h|--help] [-0|-z|--zero] [--] STR DELIM" >&2
+ echo "usage: ${FUNCNAME[0]} [-h|--help] [-0|--null|-z|--zero] [--] STR DELIM" >&2
return 1
fi