Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324216

Summary: [console] Should we prevent "exit" command from UI Console?
Product: [Eclipse Project] Equinox Reporter: DJ Houghton <dj.houghton>
Component: FrameworkAssignee: equinox.framework-inbox <equinox.framework-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen, tjwatson
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description DJ Houghton CLA 2010-09-01 11:33:44 EDT
The Console View in the UI now allows you to open a "Host OSGi Console". This is great. Should we prevent users from typing "exit" here and bringing down their host Eclipse? Sometimes using "exit" in a command prompt is useful or expected but it might be a little unexpected for a user to type that in their UI Console view and have Eclipse suddenly stop.
Comment 1 Thomas Watson CLA 2010-09-01 11:55:53 EDT
There are quite a few damaging commands you can run from the console.  I am not sure we should filter certain ones out.  Aside from that I am not sure how we would tell where the exit command is coming from.  This would likely need to be filtered out from the PDE side that is providing the inputstream with the commands entered by the user.
Comment 2 Thomas Watson CLA 2010-10-21 16:37:36 EDT
Console is low level, users can shot themselves in so many ways (exit being just one).  I don't think we should try to provide a shield to the user here.