Sure, but you need to re-write it slightly..
echo 'Test' > A
cat A && echo 'A passed' || echo 'A failed' && (cat B && echo 'B passed' || echo 'B failed')
Test
A passed
cat: B: No such file or directory
B failed
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Sure, but you need to re-write it slightly..
echo 'Test' > A
cat A && echo 'A passed' || echo 'A failed' && (cat B && echo 'B passed' || echo 'B failed')
Test
A passed
cat: B: No such file or directory
B failed