You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Bill Havanki (JIRA)" <ji...@apache.org> on 2014/03/03 16:47:24 UTC

[jira] [Commented] (ACCUMULO-2423) Converge Shell scripts on single implementation

    [ https://issues.apache.org/jira/browse/ACCUMULO-2423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13918175#comment-13918175 ] 

Bill Havanki commented on ACCUMULO-2423:
----------------------------------------

I much prefer bash over sh.

bash 3 is certainly an acceptable minimum. Like Christopher said, bash 4 isn't shipped with Mac OS X ... [even Mavericks is still on 3.2|http://apple.stackexchange.com/questions/100915/what-version-of-bash-comes-with-osx-10-9-mavericks]. However, it's easy to get it via [Homebrew|http://brew.sh] or [MacPorts|http://macports.org] so it's not that unreasonable to require it there.

> Converge Shell scripts on single implementation
> -----------------------------------------------
>
>                 Key: ACCUMULO-2423
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2423
>             Project: Accumulo
>          Issue Type: Improvement
>    Affects Versions: 1.6.0
>            Reporter: Mike Drob
>
> Do we want to have a stated dependency on a particular shell? Most of our scripts explicitly use bash, but some use sh. Most scripts invoke {{#\!/usr/bin/env bash}} but some do {{#\!/bin/bash}} or other crazy things.
> I don't have a particular preference which way we go, but I'd like to see us standardize one way or the other.
> If we use {{/bin/sh}}, then we can run everything through the [checkbashisms|https://wiki.ubuntu.com/DashAsBinSh#I_am_a_developer._How_can_I_avoid_this_problem_in_future.3F] script (also available for other distros)
> If we go the other way, and switch everything to bash, then we can run them through {{ksh -n}} for deprecation warnings. I know that's a different shell, but they're still moderately useful.



--
This message was sent by Atlassian JIRA
(v6.2#6252)