When I run printenv
one of the returned variables is !::=::\
. I noticed that the variable exists because docker does not work correctly with it set.
$ printenv | grep ::
!::=::\
$ docker stack deploy keycloak -c keycloak.yml
unexpected environment "=::=::\\"
This variable only exists if my terminal is launched from the graphical interface. If I launch the same process manually from another terminal, the variable does not exist.
It is not possible to unset the variable in bash.
$ unset !::
bash: :: unrecognized history modifier
$ unset \!::
$ env | grep ::
!::=::\
$ printenv | grep :: | cat -A
!::=::\$
$ set +H
$ unset !::
$ unset \!::
$ env | grep ::
!::=::\
How can I prevent the !::=::\
environment variable from being created when the terminal is launched using the start menu?
The variable exists in both Git-bash (Msys) and MSys2.