parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in version 20170322: certain functions in the Bash environment break


From: Michael Klement
Subject: Bug in version 20170322: certain functions in the Bash environment break invocation of env_parallel on macOS 10.12.4
Date: Fri, 14 Apr 2017 14:53:16 -0400

* The version number: 20170322
* The bugid: open3-GLOB(0x7fec07207648) 

Note: The cause are the specific functions defined in my Bash environment.
If I manually modify function env_parallel() in /usr/local/bin/env_parallel.bash, to only include the one function of interest - local _list_function_BODIES="typeset -f doIt"  - , everything works fine.

* The command line being run:

 . /usr/local/bin/env_parallel.bash; doIt() { echo "$$: [$*]"; }; { echo hi; echo there; echo you; echo too; } | env_parallel  -n 1 -j 12 doIt {}

In my macOS 10.12.4 the command breaks with both the stock Bash version (3.2.57) as well as a Homebrew-installed recent version bash (4.4.5)
  • v3.2.57: only stderr output:
    • -bash: /usr/bin/which: Argument list too long
    • -bash: -n: command not found
  • v4.4.5: only stderr output:
    • The auto-detected bug condition with environment information included, including all function bodies (see attached file): 

Attachment: gnu-parallel-bug-env.txt
Description: Text document


As you can see, with the stock macOS Bash even the bug-detection mechanism failed - the `which parallel` command in function env_parallel() malfunctions and parallel never even gets to execute.

Regards,

Michael



reply via email to

[Prev in Thread] Current Thread [Next in Thread]