You cannot put spaces around the =
sign when you do:
export foo=bar
Remove the spaces you have and you should be good to go.
If you type:
export foo = bar
the shell will interpret that as a request to export three names: foo
, =
and bar
. =
isn’t a valid variable name, so the command fails. The variable name, equals sign and it’s value must not be separated by spaces for them to be processed as a simultaneous assignment and export.
Related Posts:
- mvn command not found in OSX Mavrerick
- mvn command not found in OSX Mavrerick
- Installing Homebrew on OS X
- Terminal error: zsh: permission denied: ./startup.sh
- How to switch Python versions in Terminal?
- Change default title in mac terminal window
- Recursively find all files that match a certain pattern
- Open an .html file with default browser using Bash on Mac
- How do I edit $PATH (.bash_profile) on OS X?
- How to use vim in the terminal?
- How to use vim in the terminal?
- OS X cp command in Terminal – No such file or directory
- psql: command not found Mac
- psql: FATAL: role “postgres” does not exist
- sed command with -i option failing on Mac, but works on Linux
- Mac install and open mysql using terminal
- Run script on mac prompt “Permission denied”
- Why does cURL return error “(23) Failed writing body”?
- Finding text inside a folder using terminal
- gdb debugging in Terminal OS X (10.8.5) with zsh
- How can I display the current branch and folder path in terminal?
- How to navigate to to different directories in the terminal (mac)?
- Open Sublime Text from Terminal in macOS
- How do I pause my shell script for a second before continuing?
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- How can I run python in terminal on a mac?
- Where to place $PATH variable assertions in zsh?
- Enable OpenMP support in clang in Mac OS X (sierra & Mojave)
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- What does export PS1=”\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ ” mean in MacOS’ bash Terminal?
- How to view / open a calculator in mac OS X?
- How do I execute a bash script in Terminal?
- How to uninstall Python 2.7 on a Mac OS X 10.6.4?
- VirtualBox NS_ERROR_FAILURE (0x80004005) macOS
- How do I upgrade to Python 3.6 with conda?
- pip or pip3 to install packages for Python 3?
- You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)
- How to change default Python version?
- SocketException: Address already in use MONGODB
- Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?
- OS X: equivalent of Linux’s wget
- You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)
- ImportError: No module named sklearn (Python)
- What’s a good hex editor/viewer for the Mac?
- Where to find Application Loader app in Mac?
- OS X: equivalent of Linux’s wget
- How to change default Python version?
- How to reload .bashrc settings without logging out and back in again?
- Brew install docker does not include docker engine?
- What version of Python is on my Mac?
- brew install mysql on macOS
- How do you update Xcode on OSX to the latest version?
- Mongod complains that there is no /data/db folder
- How can I open the Atom editor from the command line in OS X?
- How to uninstall Docker completely from a Mac?
- How to easily install and uninstall docker on MacOs
- How to install wget in macOS?
- Maven Install on Mac OS X
- editing PATH variable on mac
- OS X Framework Library not loaded: ‘Image not found’
- keep getting “? Something is already running on port 3000” when I do npm start on react app
- How to update Ruby with Homebrew?
- Upgrade Node.js to the latest version on Mac OS
- Install Visual Studio 2015 on mac
- Installing cgdb on a mac os x
- How do I update the password for Git?
- What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?
- How can I Remove .DS_Store files from a Git repository?
- Shared folder between MacOSX and Windows on Virtual Box
- VirtualBox: mount.vboxsf: mounting failed with the error: No such device
- Installing GCC on macOS Catalina
- gdb fails with “Unable to find Mach task port for process-id” error
- matplotlib: RuntimeError: Python is not installed as a framework
- RE error: illegal byte sequence on Mac OS X
- Arduino IDE is not showing any port macOS
- Can’t connect to MySQL server on ‘127.0.0.1’ (61) on Mac
- boto3 python 2.7 ImportError: No module named boto3 USER_BASE USER_SITE site packages doesn’t exist
- Python can’t find module NLTK
- Reset MySQL root password using ALTER USER statement after install on Mac
- Making sure /usr/local/bin is in my $PATH on mac
- How do I add a newline using printf?
- Command not found go — on Mac after installing Go
- cannot download, $GOPATH not set
- How to install pip for Python 3 on Mac OS X?
- Updating php version on mac
- Kill a python process
- Reading syslog output on a Mac
- Unmount the directory which is mounted by sshfs in Mac
- Failed to launch macOS app built in Xcode
- Testing web application on Mac/Safari when I don’t own a Mac
- What is the best/safest way to reinstall Homebrew?
- How to completely uninstall Android Studio on Mac?
- SQL Client for Mac OS X that works with MS SQL Server
- How do you stop MySQL on a Mac OS install?
- Is there an equivalent of lsusb for OS X
- How to install latest version of openssl Mac OS X El Capitan
- How to restart a node.js server
- Error when using ‘sed’ with ‘find’ command on OS X: “invalid command code .”
- How can I find the path to an executable in OSX