Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1#!/usr/bin/env bash
2
3# handle empty/commented out group keys correctly https://github.com/ansible/ansible/issues/47254
4ANSIBLE_VERBOSITY=0 diff -w <(ansible-inventory -i ./test.yml --list) success.json
5
6ansible-inventory -i ./test_int_hostname.yml --list 2>&1 | grep 'Host pattern 1234 must be a string'
7

After

1#!/usr/bin/env bash
2
3set -eux -o pipefail
4
5# handle empty/commented out group keys correctly https://github.com/ansible/ansible/issues/47254
6ANSIBLE_VERBOSITY=0 diff --unified -w <(ansible-inventory -i ./test.yml --list) success.json
7
8ansible-inventory -i ./test_int_hostname.yml --list 2>&1 | grep 'Host pattern 1234 must be a string'
9

Before

program
comment "#!/usr/bin/env bash"
comment "# handle empty/commented out group keys correctly https://gi"...
command
variable_assignment
variable_name "ANSIBLE_VERBOSITY"
= "="
number "0"
command_name
word "diff"
word "-w"
process_substitution
<( "<("
command
command_name
word "ansible-inventory"
word "-i"
word "./test.yml"
word "--list"
) ")"
word "success.json"
pipeline
redirected_statement
command
command_name
word "ansible-inventory"
word "-i"
word "./test_int_hostname.yml"
word "--list"
file_redirect
file_descriptor "2"
>& ">&"
number "1"
| "|"
command
command_name
word "grep"
raw_string "'Host pattern 1234 must be a string'"

After

program
comment "#!/usr/bin/env bash"
command
command_name
word "set"
word "-eux"
word "-o"
word "pipefail"
comment "# handle empty/commented out group keys correctly https://gi"...
command
variable_assignment
variable_name "ANSIBLE_VERBOSITY"
= "="
number "0"
command_name
word "diff"
word "--unified"
word "-w"
process_substitution
<( "<("
command
command_name
word "ansible-inventory"
word "-i"
word "./test.yml"
word "--list"
) ")"
word "success.json"
pipeline
redirected_statement
command
command_name
word "ansible-inventory"
word "-i"
word "./test_int_hostname.yml"
word "--list"
file_redirect
file_descriptor "2"
>& ">&"
number "1"
| "|"
command
command_name
word "grep"
raw_string "'Host pattern 1234 must be a string'"