Re: a few small problems



Glenn McKechnie wrote:

[...]
Failing that, can mc process the command anyway...
 1. Switch to subshell using Ctrl-o
 2. type pwd in; with no <Enter> key pressed
 3. Ctrl-o to mc
 4. enter ls AND press ENTER on mc's CL
 5. mc responds with the shell error message of "bash: pwdls: command
 not found". 
This should then leave the CL ( either mc's or the subshell ) ready for
the next entry without all the Ctrl-o'ing and associated fluffing
around, trying to regain a valid state.

Having committed the above to print, an examination of the source shows
that it has already been done, an extract from src/OChangeLog ...

Sat Dec 6 23:24:23 1997   Yuri Kuzmenko <yuri microsoft kiev ua>

        * main.c: added -r command-line option. It removes
        "The shell is already running a command" message in

with the following relevant lines...

 main.c line 180
 /* If true message "The shell is already running a command" never */
  int force_subshell_execution = 0;

 main.c line 582
 if (subshell_state == INACTIVE || force_subshell_execution)
 ...
  
 main.c line 2259
 {"forceexec", 'r', POPT_ARG_NONE, &force_subshell_execution, 0,
  N_("Force subshell execution")},

This command line option ( -r ) is mentioned when running mc --help but
it is missing from the manual page. Attached and below is a patch to
remedy this for the english version in mc-4.6.0-pre2/doc/mc.1.in , if
the text is deemed suitable.


--- mc.1.in     2003-01-12 20:29:39.000000000 +1100
+++ mc.1.in.r   2003-01-12 20:28:20.000000000 +1100
@@ -61,6 +61,11 @@
 .B mc
 as an alias to the appropriate shell script.
 .TP
+.I "\-r"
+Removes "The shell is already running a command" message. This will allow any
+command line entry to act on the subshell, regardless of the subshell's current
+state.
+.TP
 .I "\-s"
 Turn on the slow terminal mode, in this mode the program will not
 draw expensive line drawing characters and will toggle verbose mode


-- 
Cheers
 Glenn

Olmstead's Law:
        After all is said and done, a hell of a lot more is said than done.

Attachment: mc.1.in-patch.diff
Description: Text document



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]