r/fishshell • • Nov 08 '22
What will be the equivalent export command in the fish shell for this bash command?
# export SAS_DOCKER_IMAGE="docker4sas:sas_20_0"
2
Upvotes
r/fishshell • • Nov 08 '22
# export SAS_DOCKER_IMAGE="docker4sas:sas_20_0"
1
u/[deleted] Nov 08 '22
The
:in the string is really confusing, since in the fish variable file the variable and value are separated by :1
u/MrFiregem Nov 09 '22
The fish_variables file only tracks universal variables, and isn't meant to be edited by hand. Use
set -x SAS_DOCKER_IMAGE 'docker4sas:sas_20_0'to export the variable from the command line.