show_output_starts_shell=1 in ~/.mc/ini with `mc -u' is not working
- From: Vladimir Nadvornik <nadvornik suse cz>
- To: mc-devel gnome org
- Subject: show_output_starts_shell=1 in ~/.mc/ini with `mc -u' is not working
- Date: Fri, 10 Sep 2004 11:50:50 +0200
Hi,
I got this bugreport from Petr Hadraba <hadrabap volny cz>.
Current CVS has the same problem.
The attached patch fixes it in mc 4.6.0
1. How to reproduce:
- Run mc wirh the -u option and make sure, you have show_output_starts_shell=1
in your ~/.mc/ini.
- Press Ctrl+O
2. This is not working:
- No shell is executed.
3. Error messages and logfiles
Type `exit' to return to the Midnight Commander
/bin/bash: -c: option requires an argument
--
Vladimir Nadvornik
developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: nadvornik suse cz
Drahobejlova 27 tel:+420 2 9654 2373
190 00 Praha 9 fax:+420 2 9654 2374
Ceska republika http://www.suse.cz
--- src/cmd.c 2004-07-12 23:22:08.565117416 +0200
+++ src/cmd.c.new 2004-07-13 00:18:59.439585680 +0200
@@ -996,2 +996,3 @@
mc_raw_mode ();
+ reset_shell_mode ();
if (console_flag)
@@ -1012,3 +1013,3 @@
- my_system (EXECUTE_AS_SHELL, shell, NULL);
+ my_system (EXECUTE_INTERNAL, shell, NULL);
} else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]