$lines: Output Lines of The Last run Command

$lines is an array variable and contains the individual lines of the output of the last executed run command.

Examples

Print status code of run
1
2
3
4
5
6
@test "Example" {
  run cat nonexistent_filename
  echo "Status: $status" >&3
  echo "Output: $output" >&3
  echo "First line: ${lines[0]}" >&3
}
BashSupport Pro ist eine Bash IDE mit Unterstützung für $linesprobieren Sie es aus!
© 2020–2024 Joachim Ansorg
Impressum
Datenschutz
Rechtliches