Open ryofurue opened 4 years ago
envs/FERRET/etc/conda/deactivate.d/pyferret-deactivate.sh includes this line
envs/FERRET/etc/conda/deactivate.d/pyferret-deactivate.sh
if [[ -n "$_CONDA_SET_FERRET" ]]; then
which doesn't run on the normal Bourne shell because [[ is not supported by the Bourne shell.
[[
This results in error in the following situation
#!/bin/sh # . . . . $CONDABASE/bin/activate FERRET
on a system where /bin/sh is not bash, such as Debian and Ubuntu.
/bin/sh
bash
I think the above if statement is equivalent to the more compatible
if
if [ -n "$_CONDA_SET_FERRET" ]; then
(I know nothing about anaconda, but does the system distinguish "sh" and "bash". I hope so.)
Cheers, Ryo
envs/FERRET/etc/conda/deactivate.d/pyferret-deactivate.sh
includes this linewhich doesn't run on the normal Bourne shell because
[[
is not supported by the Bourne shell.This results in error in the following situation
on a system where
/bin/sh
is notbash
, such as Debian and Ubuntu.I think the above
if
statement is equivalent to the more compatible(I know nothing about anaconda, but does the system distinguish "sh" and "bash". I hope so.)
Cheers, Ryo