From 2333003d107d2c17421b0ae228738bd806033ced Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 11 Jul 2019 23:46:41 +0100 Subject: [PATCH] /opt/nb/etc/profile.d/pdsh.sh --- bin/csv2human | 3 ++- etc/profile.d/pdsh.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/csv2human b/bin/csv2human index fedf4d10..b708251e 100755 --- a/bin/csv2human +++ b/bin/csv2human @@ -62,7 +62,8 @@ while (<>) { exit unless @lines; -my $tot = @lines - ($Opt{header} ? 0 : 1); +# NB 11.07.19 Bug Wrong ! my $tot = @lines - ($Opt{header} ? 0 : 1); +my $tot = @lines - ($Opt{header} ? 1 : 0); my $t = -1; my $format = "| ".join(" | ",map {$t+=$_+3; "\%-".$_."s"} @len)." |".chr(10); diff --git a/etc/profile.d/pdsh.sh b/etc/profile.d/pdsh.sh index e30b195b..2f587355 100644 --- a/etc/profile.d/pdsh.sh +++ b/etc/profile.d/pdsh.sh @@ -8,7 +8,7 @@ export PDSH_SSH_ARGS="-q" [ "$SHELL" = "/bin/bash" ] || return 0 pdsh_quiet() { - exec 3> >(grep -Ev '^(pdsh@|[^ :]+: (stdio forwarding failed|channel [0-9]+: open failed))') + exec 3> >(grep -Ev '^(pdsh@|([^ :]+: )?(stdio forwarding failed|channel [0-9]+: open failed))') pdsh $@ 2>&3 exec 3>&- } -- 2.47.3