summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Martin <jxm@risingtidesystems.com>2011-06-01 14:49:48 +0200
committerJerome Martin <jxm@risingtidesystems.com>2011-06-01 14:51:15 +0200
commit27e6a14de1c3b295803fc1a93996824b040ad7bd (patch)
treeb35ccca4b28e3178d9f0b15212e5556916e54690
parentc136274a37c732fdee7fe59068db478c98cff867 (diff)
downloadconfigshell-fb-27e6a14de1c3b295803fc1a93996824b040ad7bd.tar.gz
CTRL-D now exits the shell.
* Based on user feedback. * More standard (most UNIX shells do this) than 'cd ..'.
-rw-r--r--configshell/shell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/configshell/shell.py b/configshell/shell.py
index 22eba21..604ef22 100644
--- a/configshell/shell.py
+++ b/configshell/shell.py
@@ -796,8 +796,8 @@ class ConfigShell(object):
readline.set_completer(self._complete)
cmdline = raw_input(self._get_prompt()).strip()
except EOFError:
- self.con.raw_write('\n')
- cmdline = "cd .."
+ self.con.raw_write('exit\n')
+ cmdline = "exit"
self.run_cmdline(cmdline)
if self._save_history:
try: