commit 9653e559dae1c53bfb7ac5344fd3472f2eb8aa8f
parent 573a7b70570d2391181a4fa114a6fe927e64b047
Author: Jaromil <jaromil@dyne.org>
Date:   Mon, 20 Mar 2017 00:12:08 +0100
removed local declaration in stdin_compose
investigating error given by travis build and tests
"isemail:5: maximum nested function level reached"
occurring right after stdin_compose
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/zlibs/email b/src/zlibs/email
@@ -25,9 +25,10 @@ stdin_compose() {
     fn stdin_compose $*
 
     # among the args parse recipient emails and files to attach
-    local _files=()
-    local _addrs=()
+    _files=()
+    _addrs=()
     for p in $*; do
+		func "$p"
         if [[ -r $p ]]; then
             func "attach: $p"
             _files+=(-a $p)
@@ -46,7 +47,7 @@ stdin_compose() {
     else
         cat > $body
     fi
-    local subject=`head -n1 $body`
+    subject=`head -n1 $body`
 
     [[ "$subject" = "" ]] && {
         error "Nothing read from input, not even the subject"