From 411d6d3c6a8912c83cfc8a77747d4e68ed66cb4f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 2 Apr 2016 15:22:55 -0400 Subject: [PATCH] style cleanup --- chronic | 13 ++++++------- debian/changelog | 4 ++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/chronic b/chronic index e7817e7..7cfc2d6 100755 --- a/chronic +++ b/chronic @@ -53,11 +53,10 @@ use warnings; use strict; use IPC::Run qw( start pump finish timeout ); use Getopt::Std; -use feature qw(say); -our($opt_e, $opt_v); -$opt_e = $opt_v = 0; -getopts('ev'); +our $opt_e = 0; +our $opt_v = 0; +getopts('ev'); # only looks at options before the COMMAND if (! @ARGV) { die "usage: chronic COMMAND...\n"; @@ -85,9 +84,9 @@ else { } sub showout { - $opt_v && print "STDOUT:\n"; + print "STDOUT:\n" if $opt_v; print STDOUT $out; - $opt_v && print "\nSTDERR:\n"; + print "\nSTDERR:\n" if $opt_v; print STDERR $err; - $opt_v && print "\nRETVAL: ".($ret >> 8)."\n"; + print "\nRETVAL: ".($ret >> 8)."\n" if $opt_v; } diff --git a/debian/changelog b/debian/changelog index 0a9f461..946b47f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,10 @@ moreutils (0.59) UNRELEASED; urgency=medium Thanks, Kevin Bullock * parallel: include signal.h to fix warning when building with clang Thanks, Kevin Bullock + * chronic: Added -v option for more verbose output. + Thanks, Tomas Mudrunka + * chronic: Added -e option to display any stderr. + Thanks, Tomas Mudrunka -- Joey Hess Wed, 23 Mar 2016 11:48:12 -0400 -- 2.11.4.GIT