Open vinjana opened 1 year ago
Currently, there are multiple places in which shell commands are prepared for execution by quoting or escaping. At least there are
de.dkfz.roddy.tools.shell.bash.Service
de.dkfz.roddy.tools.BashUtils
This code is then used in BatchEuphoria and Roddy to do shell-escaping. And both approaches are probably leaky and certainly not portable.
Clean this up. Either use escaping or (proper) quoting (the current implementation is simplistic).
One option is to use Apache Commons Text.
As far as possible, replace all usages of the named classes by either Apache Commons Text StringUtils, or use RoddyToolLib EscapableString.
StringUtils
EscapableString
Currently, there are multiple places in which shell commands are prepared for execution by quoting or escaping. At least there are
de.dkfz.roddy.tools.shell.bash.Service
de.dkfz.roddy.tools.BashUtils
This code is then used in BatchEuphoria and Roddy to do shell-escaping. And both approaches are probably leaky and certainly not portable.
Clean this up. Either use escaping or (proper) quoting (the current implementation is simplistic).
One option is to use Apache Commons Text.