You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver (JIRA)" <ji...@apache.org> on 2011/04/21 17:04:07 UTC

[jira] [Created] (LANG-695) SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system

SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system
-----------------------------------------------------------------

                 Key: LANG-695
                 URL: https://issues.apache.org/jira/browse/LANG-695
             Project: Commons Lang
          Issue Type: Improvement
          Components: lang.*
    Affects Versions: 2.6
            Reporter: Oliver
            Priority: Minor


FreeBSD isn't regognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (LANG-695) SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system

Posted by "Oliver (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027312#comment-13027312 ] 

Oliver commented on LANG-695:
-----------------------------

Hi Henri!
Thanks for the comment. If it's delayed for post 3.0 anyway consider the other free BSD Unix variants:
OpenBSD
NetBSD

> SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system
> -----------------------------------------------------------------
>
>                 Key: LANG-695
>                 URL: https://issues.apache.org/jira/browse/LANG-695
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 2.6
>         Environment: FreeBSD 7-STABLE
>            Reporter: Oliver
>            Priority: Minor
>             Fix For: 3.x
>
>
> FreeBSD isn't recognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (LANG-695) SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated LANG-695:
-------------------------------

    Fix Version/s:     (was: 3.x)
                   3.0.2

> SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system
> -----------------------------------------------------------------
>
>                 Key: LANG-695
>                 URL: https://issues.apache.org/jira/browse/LANG-695
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 2.6
>         Environment: FreeBSD 7-STABLE
>            Reporter: Oliver
>            Priority: Minor
>             Fix For: 3.0.2
>
>
> FreeBSD isn't recognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (LANG-695) SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system

Posted by "Oliver (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028812#comment-13028812 ] 

Oliver commented on LANG-695:
-----------------------------

The case sensitive values of {{os.name}} for BSD--Unix variants are:
FreeBSD
OpenBSD
NetBSD

For the {{IS_BSD}} case I'd say Mac OS X should be treated as a BSD--Unix as well, because {{IS_UNIX}} returns {{true}} for Mac OS X, too. And by the way Mac OS X *is* actually FreeBSD, But don't tell Mac addicts ;)

{quote}
Given we have OS X, do we add the various BSDs.
{quote}

I'd say no, because this is imho confusing.

But if we have {{IS_LINUX}} and {{IS_BSD}} , we should also provide something like {{IS_SYS_V}} for SunOS and Solaris. (?)


> SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system
> -----------------------------------------------------------------
>
>                 Key: LANG-695
>                 URL: https://issues.apache.org/jira/browse/LANG-695
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 2.6
>         Environment: FreeBSD 7-STABLE
>            Reporter: Oliver
>            Priority: Minor
>             Fix For: 3.x
>
>
> FreeBSD isn't recognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (LANG-695) SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed LANG-695.
------------------------------

    Resolution: Fixed

Thanks. I've added these (IS_OS_FREE_BSD, IS_OS_OPEN_BSD, IS_OS_NET_BSD and then all three under IS_OS_UNIX).

svn ci -m "Adding FreeBSD, NetBSD and OpenBSD per Oliver's suggestion in LANG-695"
Sending        src/main/java/org/apache/commons/lang3/SystemUtils.java
Transmitting file data .
Committed revision 1160564.


> SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system
> -----------------------------------------------------------------
>
>                 Key: LANG-695
>                 URL: https://issues.apache.org/jira/browse/LANG-695
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 2.6
>         Environment: FreeBSD 7-STABLE
>            Reporter: Oliver
>            Priority: Minor
>             Fix For: 3.0.2
>
>
> FreeBSD isn't recognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (LANG-695) SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated LANG-695:
-------------------------------

      Description: FreeBSD isn't recognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.  (was: FreeBSD isn't regognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.)
    Fix Version/s: 3.x

Seems fair. Moving to post 3.0 as that's so close and I don't want to delay.

> SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system
> -----------------------------------------------------------------
>
>                 Key: LANG-695
>                 URL: https://issues.apache.org/jira/browse/LANG-695
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 2.6
>         Environment: FreeBSD 7-STABLE
>            Reporter: Oliver
>            Priority: Minor
>             Fix For: 3.x
>
>
> FreeBSD isn't recognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (LANG-695) SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system

Posted by "Oliver (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022775#comment-13022775 ] 

Oliver commented on LANG-695:
-----------------------------

*Workaround:*
{code}
"FreeBSD".equalsIgnoreCase(SystemUtils.OS_NAME)
{code}

> SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system
> -----------------------------------------------------------------
>
>                 Key: LANG-695
>                 URL: https://issues.apache.org/jira/browse/LANG-695
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 2.6
>         Environment: FreeBSD 7-STABLE
>            Reporter: Oliver
>            Priority: Minor
>
> FreeBSD isn't regognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (LANG-695) SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027554#comment-13027554 ] 

Henri Yandell commented on LANG-695:
------------------------------------

Absolutely - any help you could offer there to identify the correct text would be good as it's been a long time since I installed a BSD.

It takes us more into the various OS arguments. Do we have an IS_BSD and make all three fit that (as with our IS_LINUX). Do we then treat OS X as a BSD as well. Given we have OS X, do we add the various BSDs. To start with it's probably best to identify the os.name property for each of the three BSDs.

> SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system
> -----------------------------------------------------------------
>
>                 Key: LANG-695
>                 URL: https://issues.apache.org/jira/browse/LANG-695
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 2.6
>         Environment: FreeBSD 7-STABLE
>            Reporter: Oliver
>            Priority: Minor
>             Fix For: 3.x
>
>
> FreeBSD isn't recognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (LANG-695) SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system

Posted by "Oliver (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver updated LANG-695:
------------------------

    Environment: FreeBSD 7-STABLE

> SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system
> -----------------------------------------------------------------
>
>                 Key: LANG-695
>                 URL: https://issues.apache.org/jira/browse/LANG-695
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 2.6
>         Environment: FreeBSD 7-STABLE
>            Reporter: Oliver
>            Priority: Minor
>
> FreeBSD isn't regognized as Unix system in SystemUtils.IS_OS_UNIX; There should be something like SystemUtils.IS_OS_FREEBSD, also.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira