From f303f2ea63ce70f63355349bc0130ddb04a251f8 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Wed, 26 Jul 2000 09:16:13 +0000 Subject: Belatedly fold in 12162, to replace command subst with eval. --- Src/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/utils.c b/Src/utils.c index 955158831..33fed62dd 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -67,7 +67,8 @@ zwarn(const char *fmt, const char *str, int num) { if (errflag || noerrs) return; - trashzle(); + if (isatty(2)) + trashzle(); /* * scriptname is set when sourcing scripts, so that we get the * correct name instead of the generic name of whatever -- cgit 1.4.1