3

I have this command

$("${DIR}/test.py" "$1")

the output of which is

export SOME_VAR="hello world" export ANOTHER_VAR="hello"

But eval $("${DIR}/test.py" "$1")

seems to do nothing. What am I doing wrong?

I want to export those variables in my shell script.

masterpiece
  • 115
  • 1
  • 1
  • 8

1 Answers1

1

After discussion, we determined that the problem was not using source to allow exporting vars to the current shell.

niry
  • 155
  • 7