Can you spot the difference between the following 2 scripts?
#!/bin/bash
ps \
aux
#!/bin/bash
ps \
aux
Hint: One works and one doesn't.
Spoiler:
Makefiles and Linus aren't the only ones who care about spacing.
There's an extra space after the \
in the first example.
We actually experienced a bug on Cloud Seeder due to this issue. It took us a bit to spot it!
You can remove trailing whitespace like this:
sed 's/[[:blank:]]*$//'