Skip to content

Commit 4a51f3a

Browse files
author
Joe Schaefer
committed
json support for ctrl-[ (\x1b)
1 parent 5054882 commit 4a51f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubectl-node_shell

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
kubectl=kubectl
5-
version=1.5.1
5+
version=1.5.2
66
generator=""
77
node=""
88
nodefaultctx=0
@@ -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(/"/,"\\\"");gsub(/\n/,"\\n");gsub(/\x1b/,"\\u001b");printf "%s", last; last=$0}END{gsub(/\\n/,"");printf "%s", last}' \
7979
)\""
8080
shift
8181
done

0 commit comments

Comments
 (0)