bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: avoid user's startup and history files


From: Grisha Levit
Subject: [PATCH] tests: avoid user's startup and history files
Date: Sun, 31 Aug 2025 22:06:30 -0400

Avoid test failure if user's .bashrc produces any output.
Avoid writing test commands to users's .bash_history file.
---
 tests/execscript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/execscript b/tests/execscript
index aad37be4..0e652b1a 100644
--- a/tests/execscript
+++ b/tests/execscript
@@ -148,7 +148,7 @@ ${THIS_SH} ./exec6.sub
 # checks for properly deciding what constitutes an executable file
 ${THIS_SH} ./exec7.sub
 
-${THIS_SH} -i ${PWD}/exec8.sub
+HISTFILE= ${THIS_SH} --norc -i ${PWD}/exec8.sub
 
 ${THIS_SH} ./exec9.sub
 
-- 
2.50.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]