diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2021-12-24 20:42:54 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2021-12-24 20:42:54 +1300 |
commit | e14c34ddbfaeda0a803ec76aaf9ad6746a4c8bb2 (patch) | |
tree | 73948cf78ed714c7a4dfe9b7bc8189e6539539e4 | |
parent | Merge branch 'release/v11.9.0' into develop (diff) | |
download | dotfiles-e14c34ddbfaeda0a803ec76aaf9ad6746a4c8bb2.tar.gz dotfiles-e14c34ddbfaeda0a803ec76aaf9ad6746a4c8bb2.zip |
Add --no-warnings to rlwrap calls
-rw-r--r-- | bin/clog.sh | 3 | ||||
-rw-r--r-- | bin/osc.sh | 2 | ||||
-rw-r--r-- | sh/shrc.d/ed.sh | 2 |
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 @@ -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 |