diff options
Diffstat (limited to 'lib/shell')
-rw-r--r-- | lib/shell/command-processor.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb index 2239ca98f6..b50f4003a7 100644 --- a/lib/shell/command-processor.rb +++ b/lib/shell/command-processor.rb @@ -180,6 +180,9 @@ class Shell top_level_test(command, file1) end else + unless FileTest.methods(false).include?(command.to_sym) + raise "unsupported command: #{ command }" + end if file2 FileTest.send(command, file1, file2) else |