From 3f732992ec2f9cbcf8d5e73919d9666e24f5bf40 Mon Sep 17 00:00:00 2001 From: tlor89 <60741301+tlor89@users.noreply.github.com> Date: Thu, 25 Jun 2020 11:30:38 -0500 Subject: [PATCH] T1551.003-test-7 (#1078) Co-authored-by: Toua Lor Co-authored-by: Carrie Roberts --- atomics/T1551.003/T1551.003.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/atomics/T1551.003/T1551.003.yaml b/atomics/T1551.003/T1551.003.yaml index 75a8bc8d..1c2be696 100644 --- a/atomics/T1551.003/T1551.003.yaml +++ b/atomics/T1551.003/T1551.003.yaml @@ -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 \ No newline at end of file