packages/utils/mc/patches/010-subshell.patch
Dirk Brenken eb0c3b534a
mc: update to 4.8.25
* refreshed patches
* release news: http://midnight-commander.org/wiki/NEWS-4.8.25

Signed-off-by: Dirk Brenken <dev@brenken.org>
2020-07-25 10:47:01 +02:00

11 lines
567 B
Diff

-- a/src/subshell/common.c
+++ b/src/subshell/common.c
@@ -836,7 +836,7 @@ init_subshell_precmd (char *precmd, size
"else "
"[ \"${PWD##$HOME/}\" = \"$PWD\" ] && MC_PWD=\"$PWD\" || MC_PWD=\"~/${PWD##$HOME/}\"; "
"fi; "
- "echo \"$USER@$(hostname -s):$MC_PWD\"; "
+ "echo \"$USER@$HOSTNAME:$MC_PWD\"; "
"pwd>&%d; "
"kill -STOP $$; "
"}; " "PRECMD=precmd; " "PS1='$($PRECMD)$ '\n", subshell_pipe[WRITE]);