0

I know the typical way is echo "$PATH", for example. But echo $PATH also works. Also, you don't need the echo command even, you can just type $PATH, and the value of path will be outputted to the screen.

What is the difference in these, and is there any preference for a particular command and why?

vw1262
  • 19
  • 1

1 Answers1

-1

With quotation marks around the variable, you prevent globbing and word splitting see shell check

Grigorios
  • 163