Skip to content

Commit 69b2144

Browse files
author
adamedx
committed
Use standard platform detection for Windows
1 parent 1643a81 commit 69b2144

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/chef-shell

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")))
3131

3232
require "chef/shell"
3333

34-
#irb --noreadline Don't use Readline extension module
35-
IRB.conf[:USE_READLINE] = false if (ENV['OS'] == 'Windows_NT')
34+
# On Windows only, enable irb --noreadline because of input problems --
35+
# See CHEF-3284.
36+
IRB.conf[:USE_READLINE] = false if RUBY_PLATFORM =~ /mswin|mingw|windows/
3637
Shell.start

0 commit comments

Comments
 (0)