PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] {NAME-WORD} and {NAME=WORD}
Date: Friday, 09 Oct 2020, 10:38:50


    > Message Posted By: Unknown
    >
    > What is the difference between {NAME-WORD} and {NAME=WORD}

As stated in the specification:

  ${NAME-WORD}  Replace by the value of NAME, or by the expansion of WORD if
		NAME is not defined.

  ${NAME=WORD}  Replace by the value of the environment variable NAME, or by
		the expansion of WORD if NAME is not defined (IN WHICH CASE
		NAME IS IMMEDIATELY ASSIGNED THE EXPANSION OF WORD).

(emphasis added).

--Stan-
PREV INDEX NEXT