This means that you can set a variable in shell.

but, in fish, you cannot do this.

so, don’t use fish to script. Just set the bash script interpreter to /bin/bash always