Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 4
    ${PATH:+:${PATH}} is confusing because the first : is part of the syntax and the second : is the list delimiter. Commented Jan 31, 2021 at 2:38
  • 4
    Well, I guess you will have to get used to it. Commented Jan 31, 2021 at 9:18
  • 4
    : is context-sensitive. It's a rudimentary form of AI. :-) Commented Feb 18, 2021 at 3:04
  • 1
    this :+ is acceptable to include in .profile, since that's POSIX compatible, right? Commented May 29, 2022 at 0:40
  • 1
    What about "$p/bin${PATH:+:}$PATH" like shown in Nix Pill 12? Seems legit and marginally simpler (less braces) to me Commented May 28, 2023 at 10:10