I need to set environmental variable (PATH) from Scala.
I tried this:
val cmd = Seq(\"export\", \"PATH=\'bla\'\") cmd.lines
but I g
'export' isn't an executable, it's a shell built-in command. If you're trying to set the path in the parent shell, well, you can't. You can set it for a new shell that you execute. This is really more of a unix FAQ.