0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-04 14:13:10 +00:00
Files
packages/utils/mc/patches/010-subshell.patch
Dirk Brenken 8b9030ecf4 mc: bump to release 4.8.30
* News: http://midnight-commander.org/wiki/NEWS-4.8.30
* refresh patches
* remove obsolete / adapt changed options

Signed-off-by: Dirk Brenken <dev@brenken.org>
2023-11-26 11:39:09 +01:00

12 lines
570 B
Diff

--- a/src/subshell/common.c
+++ b/src/subshell/common.c
@@ -1143,7 +1143,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]);