Hacker News new | ask | show | jobs
by rurban 2660 days ago
Mixed it up. It was from moreutils, not bsd.

My configure.ac recipe for the proper parallel is this, setting logs_all to the GNU parallel version.

    dnl GNU parallel, skip the old non-perl version from moreutils so far
    AC_CHECK_PROGS([PARALLEL], [parallel])
    logs_all=logs-all-serial.sh.in
    if test -n "$PARALLEL"; then
      AC_MSG_CHECKING([PARALLEL version])
      parallel_version=`$PARALLEL --version 2>&1 | head -n1 | cut -c14-`
      case "$parallel_version" in
        [0-9]*) AC_MSG_RESULT([$parallel_version])
                logs_all=logs-all-parallel.sh.in
                ;;
        *invalid*)
                PARALLEL=
                parallel_version="skip old moreutils version, need GNU parallel"
      esac
      AC_MSG_RESULT([$parallel_version])
    fi
    AM_CONDITIONAL([HAVE_PARALLEL], [test -n "$PARALLEL"])
1 comments

For the avoidance of doubt, moreutils' parallel is not a fork of GNU parallel. They are independent implementations.
Not really independent. Ole Tange tried to get his 2nd parallel into findutils (to replace xargs and allow parallel processing) in 2005. Because it was written in Perl, findutils refused to add it. So Ole Tange contacted moreutils in 2009, but they never answered, but later one guy of them, Tollef Fog Heen, rewrote parallel in C, with just minor API discrepancies. They say it predates GNU parallel, because the 2005-2007 package was not a GNU project then. It was added to savannah as individual GNU project in 2010, Ole gave up inclusion into findutils then.

moreutils parallel was written 2008, and added to moreutils 2009, just when Ole asked them. https://git.joeyh.name/index.cgi/moreutils.git/commit/?id=0f...

https://www.gnu.org/software/parallel/history.html

Hence I called it a "fork". Independent, yes, but when you know about the project, steal its name and put it into wide distribution under that same name, because you think your name has a better chance of being adopted, this is called a fork. Like a pitchfork. Poking into the original authors eyes with a sharp instrument.