diff options
author | marino <marino@FreeBSD.org> | 2016-08-19 12:23:33 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2016-08-19 12:23:33 +0800 |
commit | cf512bcd8a74d337ba5e3e4bd249a25ab92f6977 (patch) | |
tree | 0900acd07c6d90db63f74ea33cadbb355ff41b7c /shells | |
parent | 0b968c45ce3788fdd8b7f0b860082190ee14f7e6 (diff) | |
download | freebsd-ports-gnome-cf512bcd8a74d337ba5e3e4bd249a25ab92f6977.tar.gz freebsd-ports-gnome-cf512bcd8a74d337ba5e3e4bd249a25ab92f6977.tar.zst freebsd-ports-gnome-cf512bcd8a74d337ba5e3e4bd249a25ab92f6977.zip |
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
Diffstat (limited to 'shells')
-rw-r--r-- | shells/lshell/Makefile | 2 | ||||
-rw-r--r-- | shells/lshell/files/patch-lshell_shellcmd.py | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/shells/lshell/Makefile b/shells/lshell/Makefile index b62e000092b2..179b3a5494f1 100644 --- a/shells/lshell/Makefile +++ b/shells/lshell/Makefile @@ -3,7 +3,7 @@ PORTNAME= lshell PORTVERSION= 0.9.16 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= shells MASTER_SITES= SF diff --git a/shells/lshell/files/patch-lshell_shellcmd.py b/shells/lshell/files/patch-lshell_shellcmd.py new file mode 100644 index 000000000000..4512cc2c8629 --- /dev/null +++ b/shells/lshell/files/patch-lshell_shellcmd.py @@ -0,0 +1,11 @@ +--- 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) |