diff options
author | Jerome Martin <jxm@risingtidesystems.com> | 2011-06-01 14:49:48 +0200 |
---|---|---|
committer | Jerome Martin <jxm@risingtidesystems.com> | 2011-06-01 14:51:15 +0200 |
commit | 27e6a14de1c3b295803fc1a93996824b040ad7bd (patch) | |
tree | b35ccca4b28e3178d9f0b15212e5556916e54690 | |
parent | c136274a37c732fdee7fe59068db478c98cff867 (diff) | |
download | configshell-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.py | 4 |
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: |