Github user adamosloizou commented on the pull request:

    https://github.com/apache/spark/pull/1230#issuecomment-47319385
  
    @vanzin great catch! Unfortunately, it will not work with this patch as it 
captures the `exit` before it passes it down to the evaluation section:
    ```
    scala> val exit = 1
    exit: Int = 1
    
    scala> exit
    Stopping spark context.
    ```
     From a quick look, it seems to be non-trivial to intercept the `exit` 
evaluation at a lower level.
    
    The patch seems to only subvert single line evals of `exit`:
    ```
    scala> :paste
    // Entering paste mode (ctrl-D to finish)
    
    val exit = 1
    exit
    
    // Exiting paste mode, now interpreting.
    
    exit: Int = 1
    res0: Int = 1
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to