The generated scripts use this idiom

sed_command="sed -i ..."

where the ellipsis is replaced a follow symlink option if the file being edited 
is a symbolic link. There are some errors when running the generated 
remediation script, such as

"sed  -i " command not found.

As an alternative, I change the script to say

sed_command_params="sed -I ..."

sed ${command_params}

This works. It seems more reasonable to me because we do not want a different 
command, we want different parameters to the sed command.

Greg Silverman
Mountain View, CA
_______________________________________________
Open-scap-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/open-scap-list

Reply via email to