Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#73651 - [filesystem] 2021.12.07-1: incorrect PATH setting

Attached to Project: Arch Linux
Opened by Matthew T. Hoare (Head_on_a_Stick) - Sunday, 06 February 2022, 16:14 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 06 February 2022, 17:39 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The filesystem-2021.12.07-1 package supplies /etc/profile that uses an append_path function to add /usr/local/{s,}bin to PATH but those directories should appear before {,/usr}/{s,}bin to allow users to shadow applications in those directories with their own versions.

Steps to reproduce:

touch /usr{,/local}/bin/bug_example
chmod +x /usr{,/local}/bin/bug_example
type bug_example # shows /usr/bin/bug_example
rm /usr{,/local}/bin/bug_example
This task depends upon

Closed by  Antonio Rojas (arojas)
Sunday, 06 February 2022, 17:39 GMT
Reason for closing:  Not a bug
Additional comments about closing:  The paths are added in the correct order
Comment by Doug Newgard (Scimmia) - Sunday, 06 February 2022, 16:32 GMT
They *do* appear before /usr/bin (the only one that exists in Arch). See line 20. You've got something else going on.

Loading...