From aa86bb5c6e569eecbc562b5088288b91f6cbaa9d Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 26 Apr 2020 17:47:18 +0000 Subject: [PATCH] m: don't increment variables inside subshell --- mblaze/m.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mblaze/m.sh b/mblaze/m.sh index 7c53dfd..c3e3f1e 100644 --- a/mblaze/m.sh +++ b/mblaze/m.sh @@ -38,14 +38,14 @@ _mlist_i_rec() tmc=0 entries=0 while IFS= read -r dir; do - mdirs "$dir" | mlist -i | tail -n 1 | { - IFS=" " read -r uc ut fc ft mc mt dummy - _mlist_i_rec_ln "$uc" "$fc" "$mc" "$dir" - tuc=$((tuc + uc)) - tfc=$((tfc + fc)) - tmc=$((tmc + mc)) - entries=$((entries + 1)) - } + IFS=" " read -r uc ut fc ft mc mt dummy <