3 ms·
It will see a string delimited with ':'. The point is that while inside xonsh, your variable is typed, and then xonsh hands the env in the expected way to the s
by roblabla 10y ago
It will see a string delimited with ':'. The point is that while inside xonsh, your variable is typed, and then xonsh hands the env in the expected way to the subprocesses.
- gear54rus 10y agoSo basically it goes back to string from array by simply unconditionally joining it on a ':'? I guess that makes some sense... But isn't this convention (delimited by ':') only for PATH?
- roblabla 10y agoMost path arrays are :-concatenated on unixes (RPATH, LD_PRELOAD, etc...), so the convention holds for the majority case. There might be a way to specify the serialization of your array somewhere, but I can't find it in the doc.
- klibertp 10y agohttps://docs.python.org/2/library/os.html#os.pathsep https://docs.python.org/2/library/os.html#os.pathsep
- rkangel 10y agoThe convention holds for other lists too (usually lists of directories). The important thing is that there is a similar but different convention on Windows (';' is used), and xonsh abstracts that away in the same way Python does.