Question regarding $XDG_DATA_DIRS

Akbarkhon Variskhanov <[email protected]> Thu, 13 Oct 2022 00:56:09 +0500
Newsgroups gmane.linux.xdg.devel
Message-ID <CANeoM1F0z5c6QepaqW4GxHNrDRyAMao6Vqo_cEh1dPEuVgUoZg@mail.gmail.com>
Hi.

I noticed that the default value has a trailing slash for both directories:

> If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used.

I was wondering what's the benefit of including a trailing slash? Is
there a specific purpose to it or is it a typo? With all due respect,
it looks so out of place. Path-related variables usually strip it off.

Sorry if I'm asking in the wrong place.

Cheers,
Akbar.