From: Nicolas Boisselier Date: Sun, 27 Mar 2016 02:43:29 +0000 (+0100) Subject: header def when cut X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=2ab24584da98418e7601d5c49f8c5a8548829d85;p=nb.git header def when cut --- diff --git a/bin/dbq b/bin/dbq index 2e42c61e..fef81d72 100755 --- a/bin/dbq +++ b/bin/dbq @@ -158,7 +158,7 @@ $keys{table} = $1 if $keys{db} and $keys{db} =~ s/:(.*)$//; if ( $Opt{cut} ) { open(STDOUT,"|cut -f $Opt{cut}"); $keys{format} = 'csv'; - $keys{header} = '0'; + $keys{header} = '0' unless defined $keys{header}; } elsif ($keys{format} eq 'nc') { $keys{format} = 'csv';