Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
7.5.5 : avoid creation of random files for rlwrap
Browse files Browse the repository at this point in the history
using /dev/null instead

Signed-off-by: Ari Archer <[email protected]>
  • Loading branch information
Ari Archer committed Mar 21, 2023
1 parent 4ff4603 commit f8e5f59
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions baz
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[ "$BAZ_DEBUG" ] && set -x

export BAZ_VERSION='7.5.4'
export BAZ_VERSION='7.5.5'
export BAZ_DIR="$HOME/.local/share/baz"
export BAZ_CONFDIR="$HOME/.config/baz"
export BAZ_CONF="$BAZ_CONFDIR/config.env"
Expand Down Expand Up @@ -848,13 +848,7 @@ main() {
if [ "$BAZ_NORLWRAP" != true ] && command -v rlwrap >/dev/null; then
baz_use trap rlwrap return
_rlhist="$TMPDIR/.baz.$RANDOM"
: >"$_rlhist"
trap 'rm -f -- "$_rlhist"' 0 1 15
_BAZ_NO_PRE=true BAZ_NORLWRAP=true exec rlwrap -g '.*' -H "$_rlhist" -- "$0" "$@"
_BAZ_NO_PRE=true BAZ_NORLWRAP=true exec rlwrap -n -H /dev/null -- "$0" "$@"
fi
set -e
Expand Down

0 comments on commit f8e5f59

Please sign in to comment.