method
new
new(sh, pattern)
public
Hide source
# File lib/shell/builtin-command.rb, line 57 def initialize(sh, pattern) super sh @pattern = pattern Thread.critical = true back = Dir.pwd begin Dir.chdir @shell.cwd @files = Dir[pattern] ensure Dir.chdir back Thread.critical = false end end