<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -121,7 +121,7 @@ module Capistrano
           options[:env] = env unless env.empty?
 
           shell = options[:shell] || self[:default_shell]
-          options[:shell] = shell if shell
+          options[:shell] = shell unless shell.nil?
 
           options
         end
@@ -144,4 +144,4 @@ module Capistrano
       end
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/capistrano/configuration/actions/invocation.rb</filename>
    </modified>
    <modified>
      <diff>@@ -76,6 +76,11 @@ class ConfigurationActionsInvocationTest &lt; Test::Unit::TestCase
     assert_equal({:foo =&gt; &quot;bar&quot;, :shell =&gt; &quot;/bin/bash&quot;}, @config.add_default_command_options(:foo =&gt; &quot;bar&quot;))
   end
 
+  def test_add_default_command_options_should_use_default_shell_of_false_if_present
+    @config.set :default_shell, false
+    assert_equal({:foo =&gt; &quot;bar&quot;, :shell =&gt; false}, @config.add_default_command_options(:foo =&gt; &quot;bar&quot;))
+  end
+
   def test_add_default_command_options_should_use_shell_in_preference_of_default_shell
     @config.set :default_shell, &quot;/bin/bash&quot;
     assert_equal({:foo =&gt; &quot;bar&quot;, :shell =&gt; &quot;/bin/sh&quot;}, @config.add_default_command_options(:foo =&gt; &quot;bar&quot;, :shell =&gt; &quot;/bin/sh&quot;))
@@ -200,4 +205,4 @@ class ConfigurationActionsInvocationTest &lt; Test::Unit::TestCase
       c = mock(&quot;data&quot;, :called =&gt; true)
       Capistrano::Command.expects(:process).with(command, sessions, options).yields(a, b, c)
     end
-end
\ No newline at end of file
+end</diff>
      <filename>test/configuration/actions/invocation_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1114c00039b55b65b8a527c3ddbcb861d742a99a</id>
    </parent>
  </parents>
  <author>
    <name>Ryan McGeary</name>
    <email>ryanongit@mcgeary.org</email>
  </author>
  <url>http://github.com/jamis/capistrano/commit/25764b3aa1c19bdb0a75df7d226ac29960a15452</url>
  <id>25764b3aa1c19bdb0a75df7d226ac29960a15452</id>
  <committed-date>2008-05-08T07:03:21-07:00</committed-date>
  <authored-date>2008-05-08T07:03:21-07:00</authored-date>
  <message>Added support for `set :default_shell, false` instead of requiring `default_run_options[:shell] = false`</message>
  <tree>4b7f5cbc5cf4fb5f18f52a807447e89813b02538</tree>
  <committer>
    <name>Ryan McGeary</name>
    <email>ryanongit@mcgeary.org</email>
  </committer>
</commit>
