You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Sean Owen (Commented) (JIRA)" <ji...@apache.org> on 2011/12/02 14:51:40 UTC
[jira] [Commented] (MAHOUT-908) Example shell scripts don't run
properly on Ubuntu
[ https://issues.apache.org/jira/browse/MAHOUT-908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161639#comment-13161639 ]
Sean Owen commented on MAHOUT-908:
----------------------------------
Yeah safe to assume bash, I think.
> 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
> 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