Line Continuation

It is possible to specify an environment variable in an environment file (default.env) over different lines using the line continuation character `\' (refer to the following listing).

Listing: Specifying an environment variable using line continuation characters


OPTIONS=\
      -W2 \

      -Wpd

This is the same as:

OPTIONS=-W2 -Wpd

But this feature may not work well using it together with paths, e.g.:

GENPATH=.\
TEXTFILE=.\txt

GENPATH=.TEXTFILE=.\txt

This results in:

To avoid such problems, use a semicolon ';' at the end of a path if there is a `\' at the end (refer to the following listing):

Listing: Using a semicolon to allow a multiline environment variable
GENPATH=.\;
TEXTFILE=.\txt