Base Directory Specification - XDG_*_DIRS syntax
Charles Suprin
hamaa1vs at gmail.com
Mon Dec 26 18:16:49 PST 2011
Since no-one else has brought this up, there are portability
considerations. There are colons in Windows paths. The ever famous
c:\. Also old versions of Apple products used to use colons as well
for directory separators. Perhaps the solution is to have the
XDG_DATA_DIRS and XDG_CONFIG_DIRS stored as the native PATH variable.
However others probably know better than I.
Just my $.02,
Charles Suprin
On Sun, Dec 25, 2011 at 8:57 AM, Thiago Macieira <thiago at kde.org> wrote:
> On Sunday, 25 de December de 2011 05.14.38, subscription.discussion at gmail.com
> wrote:
>> The XDG Base Directory Specification states that the environment variables
>> $XDG_DATA_DIRS and $XDG_CONFIG_DIRS both have a list of paths that are
>> separated by a colon (':') character. How should the values be interpreted
>> if the path contains colons? Should the colon be escaped? How about the
>> escape character, should that be escaped then too (e.g. '\\')? Or are
>> colons allowed in the path at all?
>
> How does PATH do it?
>
> But I guess the question should be: is it wise to use paths that contain a
> colon?
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel Open Source Technology Center
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xdg
>
More information about the xdg
mailing list