Open HenrikBengtsson opened 2 years ago
eval $(conda-stage --source)
is not supported by vanilla sh. It was only designed and tests for bash, with the assumption it would work also on sh, but it doesn't.
sh
bash
The function:
produces a shell function conda-stage() function;
conda-stage()
$ bin/conda-stage --source | head #! /usr/bin/env bash CONDA_STAGE_HOME=$(dirname "$(dirname "${BASH_SOURCE%/}")") [[ -L "${CONDA_STAGE_HOME}" ]] && CONDA_STAGE_HOME=$(readlink "${CONDA_STAGE_HOME}") CONDA_STAGE_HOME=$(realpath "${CONDA_STAGE_HOME}") function conda-stage() { local tf_res local tf_log local exit_code
There are several problems with this, where conda-stage is not a valid function name in sh. Turns out sh does not accept hyphens in function names.
conda-stage
Issue
is not supported by vanilla
sh
. It was only designed and tests forbash
, with the assumption it would work also onsh
, but it doesn't.Troubleshooting
The function:
produces a shell function
conda-stage()
function;There are several problems with this, where
conda-stage
is not a valid function name insh
. Turns outsh
does not accept hyphens in function names.