Method: AssLauncher::Support::Shell::ProcessHolder.cmd_exe_with_k?

Defined in:
lib/ass_launcher/support/shell/process_holder.rb

.cmd_exe_with_k?(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 /K command` not exit when exit command. Thread hangup

Returns:

  • (Boolean)


92
93
94
95
# File 'lib/ass_launcher/support/shell/process_holder.rb', line 92

def self.cmd_exe_with_k?(command)
  shell_str = "#{command.cmd} #{command.args.join(' ')}"
  ! (shell_str =~ %r{(?<=\W|\A)cmd(.exe)?\s*(\/K)}i).nil?
end