freebsd-ports/shells/lshell/files/patch-lshell_shellcmd.py
John Marino 8e3046c88a shells/lshell: Fix immediate exit after first command
Without this fix, using lshell is impractical as the shell exits after
the first command is executed.

PR:		208003
Submitted by:	Ignace Mouzannar
2016-08-19 04:23:33 +00:00

11 lines
541 B
Python

--- lshell/shellcmd.py.orig 2013-09-07 23:07:08 UTC
+++ lshell/shellcmd.py
@@ -134,7 +134,7 @@ class ShellCmd(cmd.Cmd, object):
self.g_arg = ' '.join(self.g_line.split()[1:])
self.cd()
else:
- os.system('set -m; %s' % self.g_line)
+ os.system('%s' % self.g_line)
elif self.g_cmd not in ['', '?', 'help', None]:
self.log.warn('INFO: unknown syntax -> "%s"' %self.g_line)
self.stderr.write('*** unknown syntax: %s\n' %self.g_cmd)