Environment variable lookups are done first with the precise name between the % characters and if that fails, then the name between the % characters is upcased and a lookup of that valus is attempted. The first Space delimited token on the line is extracted in uppercase and then looked up...