|
From: | Hans Schou |
Subject: | Re: Bug in version 20170322: certain functions in the Bash environment break invocation of env_parallel on macOS 10.12.4 |
Date: | Sat, 15 Apr 2017 10:36:02 +0200 |
* 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):
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
[Prev in Thread] | Current Thread | [Next in Thread] |