Skip to content

Commit 6596dc0

Browse files
author
Joe Schaefer
committed
json support for ctrl-[ (\x1b)
1 parent fff93aa commit 6596dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubectl-node_shell

100644100755
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 'BEGIN{RS="\f"}{gsub(/\\/,"\\\\");gsub(/"/,"\\\"");;gsub(/\n$/,"");gsub(/\n/,"\\n");gsub(/\x1b/,"\\u001b");print $0}' \
78+
awk '{gsub(/["\\]/,"\\\\&");gsub(/\n/,"\\n");gsub(/\x1b/,"\\u001b");printf "%s",last;last=$0} END{gsub(/\\n/,"",last);printf "%s",last}' \
7979
)\""
8080
shift
8181
done

0 commit comments

Comments
 (0)