1
0
mirror of https://github.com/sstephenson/bats.git synced 2026-02-25 09:18:10 +01:00

Add $lines array

This commit is contained in:
Sam Stephenson
2011-12-28 17:12:37 -06:00
parent 4a71d77813
commit 911367e6d5
3 changed files with 11 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ run() {
[[ ! "$-" =~ e ]] || e=1
set +e
output="$("$@" 2>&1)"
IFS=$'\n' lines=($output)
status="$?"
[ -z "$e" ] || set -e
}