Changes by: Jason Hickey (jyh at cs.caltech.edu)
Date: 2003-12-02 08:40:46 -0800 (Tue, 02 Dec 2003)
Revision: 295
Log message:
| 1. Reorganized buultins into several files.
| 2. Added the $(which <file>) command, which finds the executable
| in the path.
| 3. Added "special" functions, where the arguments are always lazy.
| This could be used, for example, for the $(if e1, e2, e3) function,
| where only one of e2 and e3 should be evaluated.
|
| There is an interesting issue with lazy functions, so "if" stays
| eager for now. Consider this code, when "if" is lazy.
|
| A = 1
| B = 2
| X = $(if true, $(A), $(B))
| A = 3
| print(A = $(A))
|
| This would print "A = 3" because of implicit quoting on the arguments
| to if. This may-or-may-not be the expected semantics.