1. 3
  1.  

  2. 2

    Only vaguely on topic, but a friend once made a nice comparison that illuminates the distinction between dynamic/lexical scoping using a shell/process analogy: command line arguments behave like they’re lexically scoped, and environment variables behave like they’re dynamically scoped.