--- sox.20050917/src/sox.c.orig	2006-08-02 15:12:10.000000000 +0200
+++ sox.20050917/src/sox.c	2006-08-02 15:50:06.000000000 +0200
@@ -593,8 +593,10 @@
     if (beinteractive) init_curses(&win, file_desc[0], file_desc[file_count-1]);
 #endif
 #if defined(TAGGING)
-    tag_init(file_desc[0]->filename);
-    tag_display(win, 0);
+    if (beinteractive) {
+	tag_init(file_desc[0]->filename);
+	tag_display(win, 0);
+    }
 #endif
 
     /* Run input data through effects and get more until olen == 0 
