- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected subshell execution #2110
Comments
|
Unfortunately, I have also stumbled upon this issue quite a few times. My vote here. |
|
'The shell is already running a command' was annoying, but this "solution" only calls for shooting oneself in the foot. I just managed to make a svn commit with a bogus message only because I wanted to review something before smashing enter.
I added -u to mc's parameters. Executing commands without user's content, and with bogus arguments is just too dangerous. |
|
|
an attempt to fix the problem properly was made at https://mail.gnome.org/archives/mc-devel/2004-November/msg00199.html
another related thread is https://mail.gnome.org/archives/mc-devel/2006-July/msg00013.html |
fwiw, there is also https://mail.gnome.org/archives/mc-devel/2006-May/msg00030.html which contains a somewhat related patch that should be looked at. |
In the https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703741#16
Dmitry Borisyuk proposed the following patch:
Please review. |
as a band-aid, the idea isn't bad.
however, i don't consider this a real solution - it's destructive, after all. |
summary subshell
mc open one (sub)shell for read/write (subshell_pty)
after (sub)shell init, mc can send command to (sub)shell itself
This can be bad because mc cannot see if (sub)shell is ready to accept next shell cmds
It must be prevented that mc write shell commands itself in unclear situations.
What is a unclear situation?
What is a clear situation?
proposal:
What I miss? |
|
Important
This issue was migrated from Trac:
adminX
(mc-trac@….de)mc-trac@….de
,zaytsev
(@zyv),ossi@….org
(@ossilator),onlyjob@….fsf.org
(@onlyjob)run mc
have somedir in the current panel and your home in the other panel.
Press <Ctrl-O> to get a subshell
Enter a command with trailing space
Press <Ctrl-O> to get back to mc and switch to the other panel.
This will execute the entered command with additonals parameters cd and your home.
This also works by changing directory in current panel.
I think this is a bug as accidentally executing long running commands, never ending commands like cat or evil commands like rm -rf should not happen.
This bug was introduced in #213.
The text was updated successfully, but these errors were encountered: