packages/utils/mc/patches/010-subshell.patch
Dirk Brenken 033e513b15 mc: update to 4.8.16
* update midnight commander to latest stable release
* refresh subshell patch to support minimal openwrt environment
* switch to sha256 based package fingerprint
* compile & functional tested with ar71xx and x86

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-03-14 15:13:31 +01:00

11 lines
568 B
Diff

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