Hello, > How does the shell incorporate the environment variables output by the > module? Do the modules output shell script that is then executed, or > something else?
It outputs text which is sourced by the shell. So something like: set -e A_VARIABLE; set -gx PATH SOME_PATH; > For environment variables that are classically arrays, like PATH, fish > stores them internally as a list, but imports and exports them as > strings delimited by colons, for compatibility.I think it would be > unwise to "leak" fish's syntax into other commands by changing env > output to be compatible with fish. Ah ok, there's a further explanation in this message post: https://sourceforge.net/mailarchive/message.php?msg_id=8335820 I can't just replace all colons by spaces because a non-path variable might have a colon in it, or is that not allowed? I don't think modules differentiates between normal variables and path variables which makes things more difficult (impossible?). Thanks, Laurence ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users