The following macro recursively descends through all directories, starting at a location that you enter. (This is indicated by the
root argument.) The macro ignores directories named in the
filter argument. The result is set as the value of the CLI
EXECUTABLE_PATH state variable.
In this macro, the last statement sets the EXECUTABLE_PATH state variable. This is the only statement that is unique to the CLI. All other statements are standard Tcl.
The dset command, like most interactive CLI commands, begins with the letter
d. (The
dset command is only used in assigning values to CLI state variables. In contrast, values are assigned to Tcl variables by using the standard Tcl
set command.)