hammer ... list --search with spaces in arg fails on SCL OS
When an argument contains spaces (e.g. --search "... ...") then it's not being passed through ruby193-ruby and 'scl' correctly, causing an error:
# hammer puppet-class list --search "name = ntp" Error: too many arguments See: 'hammer puppet-class list --help'
Changes the ruby193/SCL wrappers to create a temporary file containing
all original arguments from the ruby193-* command and then executes it
via "scl enable". This fixes two quoting-related bugs with these
1. #11170: the "scl enable" command has a bug (RHBZ#1248418) where it
internally uses temporary shell scripts and doesn't escape double
quotes, so JSON strings can't be passed through as arguments.
2. #11275: the ruby-wrappers passed through arguments word-by-word,
causing arguments containing spaces to be split up. It should have
used the special quoted "$@" variable.