VO
Size: a a a
VO
VG
c
GK
$ perl -MPOSIX=:signal_h -E '$p = fork() // die; raise SIGKILL unless $p; wait(); say $?'
9
GK
$ perl -E '$p = fork() // die; exit(9) unless $p; wait(); say $?; say $? >> 8'
2304
9
VG
GK
VG
GK
GK
$? >> 8
GK
MG
MG
GK
EXIT STATUS
Normally the exit status is 0 if a line is selected, 1 if no lines were selected, and 2 if an error occurred. However, if the -q or --quiet or --silent is used and a line is selected, the exit status
is 0 even if an error occurred.
VG
GK
$ perl -E 'exit(128 + 9)' ; echo $?
137
$ perl -MPOSIX=signal_h -E 'raise 9' ; echo $?
Убито
137
GK
VG
AK
GK