buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexis Midon (JIRA)" <j...@apache.org>
Subject [jira] Created: (BUILDR-283) env variables: misleading documentation
Date Wed, 03 Jun 2009 00:26:07 GMT
env variables: misleading documentation
---------------------------------------

                 Key: BUILDR-283
                 URL: https://issues.apache.org/jira/browse/BUILDR-283
             Project: Buildr
          Issue Type: Bug
          Components: Site/documentation
    Affects Versions: 1.3.4
            Reporter: Alexis Midon
             Fix For: 1.3.5


The current documentation states that:
"a. For convenience, when you set environment variables on the command line, the variable
name is case insensitive (..)  b. " Any other way (export, ENV, etc) the variable names are
case sensitive."

a. is incorrect because Rake processes env. variables passed on the command line in a case
sensitive way.  [1]
     $buildr MYVAR=foo   is different from   $buildr myvar=foo

b. is incorrect because TEST and DEBUG are case insensitive even with export and ENV. Some
specs already test that case. [2]

The attached patch rephrases this sentence into:
"For convenience, the environment variables @TEST@ and @DEBUG@ are case insensitive, you can
use either @test=no@ or @TEST=no@. Any other environment variable names are case sensitive."


[1] http://docs.rubyrake.org/user_guide/chapter02.html
[2] http://github.com/assaf/buildr/blob/1b45697ffb6d2877fc8bc2543be92cb91638e483/spec/core/test_spec.rb#L848

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message