Skip to content

Commit fff93aa

Browse files
author
Joe Schaefer
committed
awk-x1b-only
1 parent 5ce1da4 commit fff93aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubectl-node_shell

100755100644
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-
perl -pl -0777 -e 's/([\\"])/\\$1/g;s/\n$//;s/\n/\\n/g;s/([\x01-\x1f])/sprintf "\\u%04x",ord $1/ge' \
78+
awk 'BEGIN{RS="\f"}{gsub(/\\/,"\\\\");gsub(/"/,"\\\"");;gsub(/\n$/,"");gsub(/\n/,"\\n");gsub(/\x1b/,"\\u001b");print $0}' \
7979
)\""
8080
shift
8181
done

0 commit comments

Comments
 (0)