--:----:--Keyboard shortcuts (?)Fullscreen (f)
macOS ◆ xterm-256color ◆ zsh 116 views

To declare a variable: VAR=value VAR_NAME=value VAR=”a value”

To access the value stored in a variable: $VAR

If you don’t pass the value to another program, your shell will attempt to interpret the value pulled out of the variable which may not be what you want.

What you probably want: echo $VAR