From 15db636380a6010c8486b3a7dc27188c96beff9c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 30 Jul 2014 12:26:03 +0100 Subject: %P at start of TCP function system prompt causes %-style prompt subst --- Functions/TCP/tcp_output | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Functions') diff --git a/Functions/TCP/tcp_output b/Functions/TCP/tcp_output index 781c46c33..22e818e17 100644 --- a/Functions/TCP/tcp_output +++ b/Functions/TCP/tcp_output @@ -35,6 +35,9 @@ if [[ -n $tprompt ]]; then cursess="c:0" fi zformat -f REPLY $tprompt "s:$sess" "f:$read_fd" $cursess + if [[ $REPLY = %P* ]]; then + REPLY=${(%)${REPLY##%P}} + fi # We will pass this back up. REPLY="$REPLY$*" else -- cgit 1.4.1