Skip to content

Commit a526051

Browse files
author
Joe Schaefer
committed
feature: add support for embedded ctrl-[
1 parent 6596dc0 commit a526051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubectl-node_shell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ done
7575
if [ $# -gt 0 ]; then
7676
while [ $# -gt 0 ]; do
7777
cmd="$cmd, \"$(echo "$1" | \
78-
awk '{gsub(/["\\]/,"\\\\&");gsub(/\n/,"\\n");gsub(/\x1b/,"\\u001b");printf "%s",last;last=$0} END{gsub(/\\n/,"",last);printf "%s",last}' \
78+
awk '{gsub(/["\\]/,"\\\\&");gsub(/\x1b/,"\\u001b");printf "%s",last;last=$0"\\n"} END{print $0}' \
7979
)\""
8080
shift
8181
done

0 commit comments

Comments
 (0)