Method: AssLauncher::Support::Shell::ProcessHolder.cmd_exe_with_c?
- Defined in:
- lib/ass_launcher/support/shell/process_holder.rb
.cmd_exe_with_c?(command) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Note:
‘cmd /C command` not kill command when cmd killed
99 100 101 102 |
# File 'lib/ass_launcher/support/shell/process_holder.rb', line 99 def self.cmd_exe_with_c?(command) shell_str = "#{command.cmd} #{command.args.join(' ')}" ! (shell_str =~ %r{(?<=\W|\A)cmd(.exe)?\s*(\/C)}i).nil? end |