Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324216 - [console] Should we prevent "exit" command from UI Console?
Summary: [console] Should we prevent "exit" command from UI Console?
Status: RESOLVED WONTFIX
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-01 11:33 EDT by DJ Houghton CLA
Modified: 2010-10-21 16:37 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.