Description of problem: trap sigint / ctrl-c. Ctrl-C is a fast way to clear whole command in shells or to end prematurely long-duration commands. Ctrl-C in ovirt-shell should behave the same Version-Release number of selected component (if applicable): rhevm-cli-3.1.0.17-1.el6ev.noarch.rpm How reproducible: always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
*** This bug has been marked as a duplicate of bug 868647 ***
rhevm-shell traps sigint, can you tell me where do you see KeyboardInterapt (besides getpass that don't treat it) ?
Just after start with no parameters (when typing the first command). Or actually, when typing any command.
sigint treated here "exiting shell", not being trapped means KeyboardInterapt exception thrown, can you see it thrown?
No, I can't see no exception even with --debug, I'm just dropped to the bash: [djasa@dhcp-29-7 ~]$ rhevm-shell --debug error: missing configuration variable: url ++++++++++++++++++++++++++++++++++++++++++ Welcome to RHEVM shell ++++++++++++++++++++++++++++++++++++++++++ [RHEVM shell (disconnected)]# // ctrl-c pressed here [djasa@dhcp-29-7 ~]$
(In reply to comment #5) > No, I can't see no exception even with --debug, I'm just dropped to the bash: > > [djasa@dhcp-29-7 ~]$ rhevm-shell --debug > > > > error: missing configuration variable: url > > > > > ++++++++++++++++++++++++++++++++++++++++++ > > Welcome to RHEVM shell > > ++++++++++++++++++++++++++++++++++++++++++ > > > [RHEVM shell (disconnected)]# // ctrl-c pressed here > [djasa@dhcp-29-7 ~]$ and as you can see /sigint treated here exiting the shell (what is by design), if it wasn't treated, you would see KeyboardInterrupt exception being thrown as in Bug 868647 (which was suppose to be treated by used python module btw and not by our shell)
I actually wanted r-s not to exit when ctrl-c is pressed (when intended usage of ctrl-c is to just wipe command line) but virsh and nslookup exit as well when Ctrl-C is pressed so I'm closing this bug as NOTABUG.
I would like to reopen this bug. This is really annoying. Maybe virsh and nslookup having similar behaviour. But most of standard shells behave differently and do not quit the whole shell, but wipe the command line. It requires relogin after it. And very inconvenient from the user perspective. I had to relogin 10 times during one hour working with the tool today. Please provide more reasonable explanation why not to use the standard behaviour. Thank you, Marina, GSS.
(In reply to Marina from comment #8) > I would like to reopen this bug. > This is really annoying. Maybe virsh and nslookup having similar behaviour. > But most of standard shells behave differently and do not quit the whole > shell, but wipe the command line. > > It requires relogin after it. And very inconvenient from the user > perspective. > I had to relogin 10 times during one hour working with the tool today. > you don't have to exit by pressing cntrl+c on command, you can just add a '#' at the beginning of the line to make it comment ..., but i'll address your request.
(In reply to Michael Pasternak from comment #9) > (In reply to Marina from comment #8) > > I would like to reopen this bug. > > This is really annoying. Maybe virsh and nslookup having similar behaviour. > > But most of standard shells behave differently and do not quit the whole > > shell, but wipe the command line. > > > > It requires relogin after it. And very inconvenient from the user > > perspective. > > I had to relogin 10 times during one hour working with the tool today. > > > > you don't have to exit by pressing cntrl+c on command, you can just add > a '#' at the beginning of the line to make it comment ..., but i'll address > your request. Thank you, Michael. I am aware about # option. But most of the people (myself too), are using Ctrl+C more frequently than #.
verified with is21
Closing - RHEV 3.3 Released