.zshenv:3: bad assignment
I am getting that bad assignment thing on my terminal can anyone help me with that please?attached is the picture
MacBook Air, macOS 14.5
I am getting that bad assignment thing on my terminal can anyone help me with that please?attached is the picture
MacBook Air, macOS 14.5
It was whitespace around the =
If you are still using Java, here is a two-line corrected file:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.16.1.jdk/Contents/home
export PATH=$JAVA_HOME/bin:$PATH
I’d usually use different syntax here for zsh PATH processing, but this parallels what you have.
If not using Java, the contents of that file can be removed, or the file can be entirely deleted.
It was whitespace around the =
If you are still using Java, here is a two-line corrected file:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.16.1.jdk/Contents/home
export PATH=$JAVA_HOME/bin:$PATH
I’d usually use different syntax here for zsh PATH processing, but this parallels what you have.
If not using Java, the contents of that file can be removed, or the file can be entirely deleted.
nooruddin195 wrote:
I am getting that bad assignment thing on my terminal can anyone help me with that please?
The third line of ~/.zshenv contains a syntax error.
Probably an alias command, and possibly erroneous whitespace around the =
You can use cat ~/.zshenv and check that file, and then use pico or (from the GUI) BBEdit (free and paid, and free is enough) to edit and correct the contents.
nooruddin195 wrote:
I fixed that thank you. But If I am not using java and want to keep those os there any issue?
One issue that can arise with using Java involves Oracle license charges.
Other than that, I’m aware of no particular issues with leaving Java around.
now it says like this
I fixed that thank you. But If I am not using java and want to keep those os there any issue?
.zshenv:3: bad assignment