mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Merge branch '4549_subshell_execl_argv0'
* 4549_subshell_execl_argv0: Ticket #4549: subshell: call execl with argv[0] being the actual path to Bash.
This commit is contained in:
commit
7e80ab4dd6
@ -418,13 +418,13 @@ init_subshell_child (const char *pty_name)
|
|||||||
switch (mc_global.shell->type)
|
switch (mc_global.shell->type)
|
||||||
{
|
{
|
||||||
case SHELL_BASH:
|
case SHELL_BASH:
|
||||||
execl (mc_global.shell->path, "bash", "-rcfile", init_file, (char *) NULL);
|
execl (mc_global.shell->path, mc_global.shell->path, "-rcfile", init_file, (char *) NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SHELL_ZSH:
|
case SHELL_ZSH:
|
||||||
/* Use -g to exclude cmds beginning with space from history
|
/* Use -g to exclude cmds beginning with space from history
|
||||||
* and -Z to use the line editor on non-interactive term */
|
* and -Z to use the line editor on non-interactive term */
|
||||||
execl (mc_global.shell->path, "zsh", "-Z", "-g", (char *) NULL);
|
execl (mc_global.shell->path, mc_global.shell->path, "-Z", "-g", (char *) NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SHELL_ASH_BUSYBOX:
|
case SHELL_ASH_BUSYBOX:
|
||||||
|
Loading…
Reference in New Issue
Block a user