Why: * Remove dupes from PATH How: $PATH is a scalar composed of contents of $path, so it uses typeset -U ("U" as in Unique) to ensure there are no dupes. It preserves the first occurrence in the array, since it would be searched first before others when matching a command in the directories in the PATH anyway. |
||
---|---|---|
.. | ||
completion | ||
configs | ||
functions |