Skip to content

Commit

Permalink
Workaround for pdksh on FreeBSD 13 current
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1nksm committed Apr 25, 2020
1 parent 4428c35 commit 4653d2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/libexec/reporter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ buffer() {
EVAL="
$1_buffer='' $1_opened='' $1_flowed=''; \
$1() { \
case \${1:-} in \
'?' ) [ \"\$$1_buffer\" ] &&:; return \$? ;; \
'!?' ) [ ! \"\$$1_buffer\" ] &&:; return \$? ;; \
esac; \
IFS=\" \$IFS\"; \
case \${1:-} in \
'?' ) [ \"\$$1_buffer\" ] ;; \
'!?' ) [ ! \"\$$1_buffer\" ] ;; \
'=' ) $1_opened=1; shift; $1_buffer=\${*:-} ;; \
'|=' ) $1_opened=1; shift; [ \"\$$1_buffer\" ] || $1_buffer=\${*:-} ;; \
'+=' ) $1_opened=1; shift; $1_buffer=\$$1_buffer\${*:-} ;; \
'<|>') $1_opened=1 ;; \
'>|<') [ \"\$$1_flowed\" ] && $1_buffer='' $1_flowed=''; $1_opened='' ;; \
'>>>') [ ! \"\$$1_opened\" ] || { $1_flowed=1; puts \"\$$1_buffer\"; } ;; \
esac &&:; \
set -- \$?; \
esac; \
IFS=\${IFS#?}; \
return \$1; \
} \
"
eval "$EVAL"
Expand Down

0 comments on commit 4653d2e

Please sign in to comment.