I have a command line too that produce result like such
$ mytool --param 2579072
TOO_ENV1=123456
TOOL_ENN2=df73ddb
its being used in a seperate script to set up some env var
#!/usr/bin/env bash
set -eo pipefail
...
echo "set up env variables"
source <(mytool --param "${pr_param}")
this used to work but after upgrading to a new machine (mac Big Sur) it stops working? I now am doing
export $(mytool --param "${pr_param}" | xargs)
instead
I am curious of why the source way is not working anymore? any guess?
update:
before
GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin17.7.0)
Copyright (C) 2016 Free Software Foundation, Inc.
now bash version is
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)
Copyright (C) 2007 Free Software Foundation, Inc.