Escape sequences in file names
Latest update:
How to annoy folks who use busybox:
$ touch `printf "\033[1;33m\033[44mhello"`
$ ls
''$'\033''[1;33m'$'\033''[44mhello'
$ tar cf 1.tar *hello
$ busybox tar tf 1.tar
hello
$ rpm -q busybox
busybox-1.36.1-8.fc41.x86_64
$
Oopsie-daisy.
A simple ls|cat
or ls|less -r
produces the same effect.
This won't work with gnu tar & bsdtar, for they both properly escape
escape sequences.
Tags: ойті
Authors: ag