summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2017-03-19 23:12:08 (GMT)
committer Jaromil <jaromil@dyne.org>2017-03-19 23:12:08 (GMT)
commit9653e559dae1c53bfb7ac5344fd3472f2eb8aa8f (patch)
tree92ef2c0ec50d4776943f6d62e7a779e20b7267d3
parent573a7b70570d2391181a4fa114a6fe927e64b047 (diff)
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
-rwxr-xr-xsrc/zlibs/email7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/zlibs/email b/src/zlibs/email
index 3650c2b..d113ecf 100755
--- 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"