Should I use quotes in environment path names?
Tip of the hat to @gniourf_gniourf and @chepner for their help. tl;dr To be safe, double-quote: it’ll work in all cases, across all POSIX-like shells. If you want to add a ~-based path, selectively leave the ~/ unquoted to ensure that ~ is expanded; e.g.: export PATH=~/”bin:$PATH”. See below for the rules of ~ expansion …