#1106140 base-files: unecessary /bin in $PATH

Package:
base-files
Source:
base-files
Description:
Debian base system miscellaneous files
Submitter:
Sunny73Cr
Date:
2025-05-20 10:33:02 UTC
Severity:
normal
Tags:
#1106140#5
Date:
2025-05-20 07:46:22 UTC
From:
To:
If /bin links to /usr/bin, and /usr/bin is in the PATH by default; why include /bin?

I'm assuming that the PATH is searched right to left (as later declarations over-write previous declarations), which would mean there is a small to zero performance reduction. If not; there is performance to be found.

Found on Debian 12.9, I assume that this applies to many operating systems.

#1106140#10
Date:
2025-05-20 09:17:04 UTC
From:
To:
tags 1106140 wontfix
thanks

El 20/5/25 a las 9:46, Sunny73Cr escribió:

The PATH is actually searched left to right, so there is hardly any performance gain by
dropping /bin.

Moreover, weird things may happen when we change the PATH:

https://lists.debian.org/debian-devel/2025/05/msg00050.html

We might reconsider after the release of trixie, but for now this is a wontfix.

Thanks.

#1106140#17
Date:
2025-05-20 10:29:07 UTC
From:
To:
Oops! I made an incorrect assumption. The folders listed in the PATH are not overwritten for Bash and Dash; it is a first match search.

Thanks