I have functions like this:
foo() {
/some/script \
--opt1=val1 \
--opt2=val2 \
--opt3=val3
}
This is brittle if I take out the last option, or add any new option at any line. The failures are relatively silent, when I re-source the function, meaning I've run these wrong without noticing.
I use these functions by editing .projectrc then re-sourcing. Some of these mistakes lead to errors printed but they are relatively hard to notice. Any discrepancy between type <fcn> and the text in .projectrc should be a problem.
The escaped newlines are brittle and cause problems so I wonder a good alternative that lets me write a function not all on one long line without breaking so readily.