DEV Community

Discussion on: January 20th, 2022: What did you learn this week?

Collapse
 
brendan profile image
Brendan Falk • Edited

When you edit your $PATH environment variable, you don't have to use quotes

e.g. the following is perfectly valid

PATH=$PATH:/my/new/path/
Enter fullscreen mode Exit fullscreen mode

I always thought you had to do the following, just in case $PATH expanded into something with a space, but it turns out it's fine either way

PATH="$PATH:/my/new/path/"
Enter fullscreen mode Exit fullscreen mode
Collapse
 
nickytonline profile image
Nick Taylor

Jack Nicholson nodding yes

Collapse
 
ben profile image
Ben Halpern

Whether quotes are needed in different languages is so inconsistent 😄

Collapse
 
nickytonline profile image
Nick Taylor

Loki holding KFC

Some comments have been hidden by the post's author - find out more