LucasLarson/dotfiles

`${HOME%/}` instead of `${HOME-}`

LucasLarson opened this issue · 0 comments

Consider upgrading ${HOME-} references1 to ${HOME%/}2 to avoid $PATH pollution.3

Footnotes

  1. search: repo:LucasLarson/dotfiles /\$\{HOME-\}/

  2. BashPitfalls § 28

  3. The Single UNIX Specification, version 4,4 says that “[i]f a pathname begins with two successive slash characters, the first component following the leading slash characters may be interpreted in an implementation-defined manner” (via)

  4. Single UNIX Specification, Version 4: Base Definitions § 4.13 Pathname Resolution