Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 2
    I don't see any use for it and IMO almost every use of env is a mistake.....especially including the python crowd's promotion of using env on the #! line of a script file. See unix.stackexchange.com/questions/29608/… for interesting debate on the topic. Commented Oct 2, 2015 at 5:19
  • @cas: One usage of it was shown in my question, it allow you to define function in environment variable in bash. Commented Oct 2, 2015 at 6:28
  • virtualenv seems like a great re-implementation of DLL Hell. Programmers probably love it. Sysadmins generally hate it. Commented Oct 2, 2015 at 7:12
  • 2
    The shells can't access these variables, true. But why should that prevent a program written in C or Python from accessing them? Commented Oct 2, 2015 at 7:35
  • 1
    @muru, yes, and other non-POSIX shells. Like rc that allows anything in a variable name (and where all variables are exported). Commented Oct 5, 2015 at 19:35