[Swift-devel] Reading environment variables

David Kelly davidk at ci.uchicago.edu
Sat Feb 23 14:15:10 CST 2013


Is there a function available for reading environment variables within a swift script? I didn't see one mentioned in the userguide, but this seems to work for me: 


string home=@java("java.lang.System", "getenv", "HOME"); 


Should we have a function for this? @env("HOME")? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20130223/9848f310/attachment.html>


More information about the Swift-devel mailing list