Hacker News new | past | comments | ask | show | jobs | submit login

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.



So 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?


Most 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.



The 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: