export is not recognize in cmd while Cygwin is installed

export is not recognized in cmd.

'export' is not recognized as an internal or external command, operable program or batch file.

Let's open a bash shell and look for the export command:

DavidPostill@Hal /f/test
$ which export
which: no export in (.:/home/DavidPostill/bin:/usr/local/bin:/usr/bin:/c/Windows/system32:/c/Windows)

That tells us that there isn't a program called export.

So what is it?

export is a bash built in command.

Source export.

It has no meaning outside of a bash shell.


Further Reading

  • An A-Z Index of the Bash command line for Linux - An excellent reference for all things Bash command line related.
  • export - Set an environment variable. Mark each name to be passed to child processes in the environment.

In Windows use set instead of export.


EXPORT SQUAD_DIRECTORY ="/path/to/SQUAD"

Alternative for export in windows is SET :

SET SQUAD_DIRECTORY ="/path/to/SQUAD"

Refer : https://ss64.com/nt/set.html