SyntaxFix
Write A Post
Hire A Developer
Questions
Try putting \ at the end of each line before copying it.
\
Example:
echo "Hello world" && \ script_b.sh echo $?
The exit code ($?) is now the full sequence of commands, and not just the last command.
$?