From fc8fe0fb7799fae18206d07399d5304e3ae774a6 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 24 Aug 2016 10:56:33 +0100 Subject: [PATCH] bin/dbq pipe stdout --- bin/dbq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dbq b/bin/dbq index 6985d097..db78c7e5 100755 --- a/bin/dbq +++ b/bin/dbq @@ -34,7 +34,7 @@ my %PARAM = ( 'txt_errors' => $ENV{$UC_NAME.'_TXT_ERRORS'} ? $ENV{$UC_NAME.'_TXT_ERRORS'} : '1', ); -$PARAM{'format'} = 'text' unless -t STDOUT; +$PARAM{'format'} = 'csv' unless -t STDOUT; %PARAM = map {$_=>$PARAM{$_}} grep {$PARAM{$_} ne ''} keys %PARAM; if ($ENV{$UC_NAME.'_PARAMS'}) { for (split(' ',$ENV{$UC_NAME.'_PARAMS'})) { -- 2.47.3