<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><font face="times new roman, new york, times, serif" size="3">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:</font><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div><font face="times new roman, new york, times, serif">string home=@java("java.lang.System", "getenv", "HOME");</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">Should we have a function for this? </font><span style="font-family: 'times new roman', 'new york', times, serif;">@env("HOME")?</span></div><div><br></div></div></body></html>