Browse Source

removed 'seq' bashism from messaging functions

fix after ZSh 5.3
Jaromil 3 years ago
parent
commit
de9b0f6305
1 changed files with 1 additions and 2 deletions
  1. 1 2
      zuper

+ 1 - 2
zuper

@@ -58,8 +58,7 @@ vars+=(last_act last_func last_notice)
58 58
 function _msg() {
59 59
     local msg="$2"
60 60
     command -v gettext 1>/dev/null 2>/dev/null && msg="$(gettext -s "$2")"
61
-    for i in $(seq 3 ${#});
62
-    do
61
+    for i in {3..${#}}; do
63 62
         msg=${(S)msg//::$(($i - 2))*::/$*[$i]}
64 63
     done
65 64