Here is a Perl program that sends an ASCII NUL as output:
print "hello\0world"
And here's how to run such a program from shor bash:
sh
bash
perl -e 'print "hello\0world"'
On Mac OS X 10.11.2, this produces visible output:
helloworld
However, is this behavior compatible for all POSIX compatible terminal emulators? (Unlike, for example, printing NUL as a new line or crashing?)
, ; chepner , POSIX . , ECMA- 48, , .
, ( U+0000 ).
U+0000
, ECMA-48 ( ANSI - , , ANSI-) NUL:
8.3.88 NUL - NULL: (C0) : 00/00NUL . NUL , , / .
8.3.88 NUL - NULL: (C0) : 00/00
NUL . NUL , , / .
, ANSI, NUL - ( NUL ), , ECMA-48, .
Source: https://habr.com/ru/post/1629585/More articles:When is the thread_local variable declared in the global scope exactly defined? - c ++Find a word not surrounded by alpha char - pythonHidden redirects to a hacked site? - redirectLocal Mesosphere Development - dockerFinding a variable address from another process - c ++Border border does not work in IE11 - htmlHow to check if section sequence has spaces? - rHebrew text in JTextField (Swing) - javaHow to use CPAN module in perl script that I want to provide to others? - moduleJava display text on the right side of the text area - javaAll Articles