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 <[email protected]> wrote: > On Sunday, 25 de December de 2011 05.14.38, [email protected] > 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 > [email protected] > http://lists.freedesktop.org/mailman/listinfo/xdg > _______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
