aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-12-24 20:42:54 +1300
committerTom Ryder <tom@sanctum.geek.nz>2021-12-24 20:42:54 +1300
commite14c34ddbfaeda0a803ec76aaf9ad6746a4c8bb2 (patch)
tree73948cf78ed714c7a4dfe9b7bc8189e6539539e4
parentMerge branch 'release/v11.9.0' into develop (diff)
downloaddotfiles-e14c34ddbfaeda0a803ec76aaf9ad6746a4c8bb2.tar.gz
dotfiles-e14c34ddbfaeda0a803ec76aaf9ad6746a4c8bb2.zip
Add --no-warnings to rlwrap calls
-rw-r--r--bin/clog.sh3
-rw-r--r--bin/osc.sh2
-rw-r--r--sh/shrc.d/ed.sh2
3 files changed, 4 insertions, 3 deletions
diff --git a/bin/clog.sh b/bin/clog.sh
index 3269c508..a5c777e8 100644
--- a/bin/clog.sh
+++ b/bin/clog.sh
@@ -3,7 +3,8 @@
# Build the cat(1) command we'll run, wrapping it in rlwrap(1) if available and
# applicable.
if [ "$#" -eq 0 ] && [ -t 0 ] && command -v rlwrap >/dev/null 2>&1 ; then
- set -- rlwrap --history-filename=/dev/null cat -- "${@:--}"
+ set -- rlwrap --history-filename=/dev/null --no-warnings \
+ cat -- "${@:--}"
else
set -- cat -- "${@:--}"
fi
diff --git a/bin/osc.sh b/bin/osc.sh
index 5def12ff..2853f1a5 100644
--- a/bin/osc.sh
+++ b/bin/osc.sh
@@ -17,7 +17,7 @@ serv=${2:-https}
set --
## If we have rlwrap, use it, but don't complain if we don't
if command -v rlwrap >/dev/null 2>&1 ; then
- set -- "$@" rlwrap --history-filename=/dev/null
+ set -- "$@" rlwrap --history-filename=/dev/null --no-warnings
fi
## The actual openssl(1ssl) and subcommand call
set -- "$@" openssl s_client
diff --git a/sh/shrc.d/ed.sh b/sh/shrc.d/ed.sh
index dc8433f6..0591e18d 100644
--- a/sh/shrc.d/ed.sh
+++ b/sh/shrc.d/ed.sh
@@ -22,7 +22,7 @@ ed() {
# Run in rlwrap(1) if available
set -- ed "$@"
if command -v rlwrap >/dev/null 2>&1 ; then
- set -- rlwrap --history-filename=/dev/null "$@"
+ set -- rlwrap --history-filename=/dev/null --no-warnings "$@"
fi
# Run determined command