This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ZhuangZi
Recipients ZhuangZi, bethard, r.david.murray
Date 2012-09-07.02:55:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346986527.76.0.411509458281.issue15874@psf.upfronthosting.co.za>
In-reply-to
Content
Indeed these are all valid points, and as a zsh user myself I certainly considered the alternative shell issue. That said, if it were at all possible, through a combination of os.environ / shlex, subprocess, and even `source` if necessary, to offload this interpretation to the user's shell (pass the shell a given string, receive its interpretation first before further processing), I could see a lot of benefit from this. 

Relatedly, I have seem similar requests for environment variable support in configparser, here: http://grokbase.com/t/python/python-list/03ckhw75xr/parsing-environment-variables-in-configparser-files

This particular proposal is interesting in that it creates an intermediary between the file's environment variable syntax and the shell's own. Presumably if you standardized the presentation of environment variables within this file you could use os.environ once you had recognized it. 

That said, I can understand, however, if this is prohibitively costly to implement, and it may well be that this option is ill suited to the task I am putting it to.
History
Date User Action Args
2012-09-07 02:55:29ZhuangZisetrecipients: + ZhuangZi, bethard, r.david.murray
2012-09-07 02:55:28ZhuangZisetmessageid: <1346986527.76.0.411509458281.issue15874@psf.upfronthosting.co.za>
2012-09-07 02:55:25ZhuangZilinkissue15874 messages
2012-09-07 02:55:17ZhuangZicreate