Fix ed method to not source in input (as that will also run commands);
instead, read from a temporary file.
Add an alternative using ex, which is really vim, and which is a whitelisted
package, which does not require sudo to install.
Finally, bring back the original approach of using temporary files, but instead
of using mv, use cat as it will preserve file ownership, group, and
permissions.
Also updated Travis config to run all tests with each of these methods.
Fix
ed
method to not source in input (as that will also run commands); instead, read from a temporary file.Add an alternative using
ex
, which is reallyvim
, and which is a whitelisted package, which does not requiresudo
to install.Finally, bring back the original approach of using temporary files, but instead of using
mv
, usecat
as it will preserve file ownership, group, and permissions.Also updated Travis config to run all tests with each of these methods.