T1551.003-test-7 (#1078)
Co-authored-by: Toua Lor <tlor@nti.local> Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
@@ -67,4 +67,17 @@ atomic_tests:
|
||||
unset HISTFILE
|
||||
export HISTFILESIZE=0
|
||||
history -c
|
||||
name: sh
|
||||
- name: Clear and Disable Bash History Logging
|
||||
description: |
|
||||
Clears the history and disable bash history logging of the current shell and future shell sessions
|
||||
supported_platforms:
|
||||
- linux
|
||||
- macos
|
||||
executor:
|
||||
command: |
|
||||
set +o history
|
||||
echo 'set +o history' >> ~/.bashrc
|
||||
. ~/.bashrc
|
||||
history -c
|
||||
name: sh
|
||||
Reference in New Issue
Block a user