[
https://issues.apache.org/jira/browse/MAHOUT-908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grant Ingersoll resolved MAHOUT-908.
------------------------------------
Resolution: Fixed
Assignee: Grant Ingersoll
switched classify-20newsgroups.sh to use bash
> Example shell scripts don't run properly on Ubuntu
> --------------------------------------------------
>
> Key: MAHOUT-908
> URL: https://issues.apache.org/jira/browse/MAHOUT-908
> Project: Mahout
> Issue Type: Bug
> Reporter: Grant Ingersoll
> Assignee: Grant Ingersoll
> Priority: Minor
> Fix For: 0.6
>
>
> There is some funkiness on Ubuntu when running example/bin/ shell scripts
> such as classify-newsgroups.sh. It has to do w/ the use of /bin/sh at the
> top you get odd syntax errors:
> {quote}
> ./classify-20newsgroups.sh: 35: Syntax error: "(" unexpected (expecting "fi")
> {quote}
> If you switch it to /bin/bash or invoke it as "bash classify-newsgroups.sh"
> then it all works.
> I assume we can make the assumption that bash exists everywhere this is going
> to run?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira