diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2000-07-26 09:16:13 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-07-26 09:16:13 +0000 |
commit | f303f2ea63ce70f63355349bc0130ddb04a251f8 (patch) | |
tree | dca8a07660778e388919abad3ba54a6dffd4d3e1 /Src | |
parent | 04aaf1cd7f9fb791a3f305c2d8f6e7f995b1db6a (diff) | |
download | zsh-f303f2ea63ce70f63355349bc0130ddb04a251f8.tar.gz zsh-f303f2ea63ce70f63355349bc0130ddb04a251f8.tar.xz zsh-f303f2ea63ce70f63355349bc0130ddb04a251f8.zip |
Belatedly fold in 12162, to replace command subst with eval.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |