diff options
author | adamedx <adamed@opscode.com> | 2013-07-09 15:18:05 -0700 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-07-11 06:50:27 -0700 |
commit | 69b214405bfd475c100551b396a9ccf2d1839669 (patch) | |
tree | 6160addd6a4ad6930e61bc291128ada762e366c7 /bin | |
parent | 1643a817a9605fadba11d797d33fc5aa37c72bf3 (diff) | |
download | chef-69b214405bfd475c100551b396a9ccf2d1839669.tar.gz |
Use standard platform detection for Windows
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chef-shell | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/chef-shell b/bin/chef-shell index 29a2cb7746..d6ebfc9fe2 100755 --- a/bin/chef-shell +++ b/bin/chef-shell @@ -31,6 +31,7 @@ $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))) require "chef/shell" -#irb --noreadline Don't use Readline extension module -IRB.conf[:USE_READLINE] = false if (ENV['OS'] == 'Windows_NT') +# On Windows only, enable irb --noreadline because of input problems -- +# See CHEF-3284. +IRB.conf[:USE_READLINE] = false if RUBY_PLATFORM =~ /mswin|mingw|windows/ Shell.start |