diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-09-10 11:54:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 11:54:36 -0700 |
commit | 5e22fdd9ccdd894d4c6e165438ca314ed2cd3b9e (patch) | |
tree | 46bbcfe7286a9cda4ef625ee7f96ed18001cc336 /src/nvim/eval/decode.c | |
parent | 7525052270c4c5e62b9b5bc7dbc20b851f986900 (diff) | |
parent | 7b822d4b4b71ef0e9ed6a39ef50a5a2cbf8660c5 (diff) | |
download | rneovim-5e22fdd9ccdd894d4c6e165438ca314ed2cd3b9e.tar.gz rneovim-5e22fdd9ccdd894d4c6e165438ca314ed2cd3b9e.tar.bz2 rneovim-5e22fdd9ccdd894d4c6e165438ca314ed2cd3b9e.zip |
test: avoid writing ~/.bash_history #15621
Problem:
- If I run 'make test' on Linux (Fedora), a few lines like
/path/to/neovim/build/bin/shell-test REP 31 line
/path/to/neovim/build/bin/shell-test REP 41 line
are written to my ~/.bash_history.
These comes from from test/functional/terminal/scrollback_spec.lua.
- If $HISTFILE is unset, shell will not write to history file.
But bash sets $HISTFILE to default value (~/.bash_history) if it is unset.
- Unknown how to set an env var to empty string in CMake. These do NOT work:
set(HISTFILE "")
set(ENV{HISTFILE} "")
unset(ENV{HISTFILE})
Solution:
Set HISTFILE=/dev/null
Diffstat (limited to 'src/nvim/eval/decode.c')
0 files changed, 0 insertions, 0 deletions