Update 'internal/chmod.rb'
parent
b051eac54e
commit
05218b98ce
|
@ -38,7 +38,7 @@ module Chmod
|
|||
module Backtick
|
||||
def do_backtick(evt)
|
||||
target, msg = evt.args
|
||||
if msg.start_with? '$ ' or msg.start_with? '#' or (msg.start_with? '`' and msg.count('`') == 1)
|
||||
if msg.start_with? '$ ' or (msg.start_with? '`' and msg.count('`') == 1)
|
||||
Thread.new {
|
||||
Open3.popen2e("/bin/sh", "-c", msg[1..]) {|stdin, stdout_and_stderr, wait|
|
||||
stdin.close
|
||||
|
|
Loading…
Reference in New Issue