aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.markdown2
-rw-r--r--bash/bashrc.d/readv.bash25
-rw-r--r--bash/bashrc.d/readz.bash4
3 files changed, 0 insertions, 31 deletions
diff --git a/README.markdown b/README.markdown
index c79ffd1b..1c205261 100644
--- a/README.markdown
+++ b/README.markdown
@@ -213,8 +213,6 @@ There are a few other little tricks defined for other shells, mostly in
* `path()` manages the contents of `PATH` conveniently.
* `prompt()` sets up my interactive prompt.
* `pushd()` adds a default destination of `$HOME` to the `pushd` builtin.
-* `readv()` prints names and values from `read` calls to `stderr`.
-* `readz()` is an alias for `read -d '' -r`.
* `vared()` allows interactively editing a variable with Readline, emulating
a Zsh function I like by the same name.
diff --git a/bash/bashrc.d/readv.bash b/bash/bashrc.d/readv.bash
deleted file mode 100644
index abd624a4..00000000
--- a/bash/bashrc.d/readv.bash
+++ /dev/null
@@ -1,25 +0,0 @@
-readv() {
- local arg
- local -a opts names
- for arg ; do
- case $arg in
- --)
- shift
- break
- ;;
- -*)
- shift
- opts[${#opts[@]}]=$arg
- ;;
- *)
- break
- ;;
- esac
- done
- names=("$@")
- builtin read "${opts[@]}" "${names[@]}" || return
- for name in "${names[@]}" ; do
- printf >&2 '%s: %s = %s\n' \
- "$FUNCNAME" "$name" "${!name}"
- done
-}
diff --git a/bash/bashrc.d/readz.bash b/bash/bashrc.d/readz.bash
deleted file mode 100644
index 910aab4b..00000000
--- a/bash/bashrc.d/readz.bash
+++ /dev/null
@@ -1,4 +0,0 @@
-# Call read with a null delimiter
-readz() {
- builtin read -rd '' "$@"
-}