Merge environment into single-line variable.