Bug 34371 - xzgrep -m не грепает а выводит недетерминированный вывод
Summary: xzgrep -m не грепает а выводит недетерминированный вывод
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: gzip-utils (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-21 06:06 MSK by alexey.tourbin
Modified: 2017-12-21 06:38 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alexey.tourbin 2017-12-21 06:06:46 MSK
Хотел посмотреть, чем сейчас генерируются man-страницы.

$ cd /usr/share/man/man1
$ xzgrep -h -C1 -m2 . *.xz |md5sum
d7a8d7c1ccb430ede470558c68bc4fc9  -
$ xzgrep -h -C1 -m2 . *.xz |md5sum
d1007283962381141226da4c8cc827a7  -
$ xzgrep -h -C1 -m2 . *.xz |md5sum
09119cb51c54420f0b6116323b9a798d  -
$ xzgrep -h -C1 -m2 . *.xz |md5sum
d7a8d7c1ccb430ede470558c68bc4fc9  -
$ xzgrep -h -C1 -m2 . *.xz |md5sum
e3db3b25fa442d9c13fb281ba2ad0b82  -
Comment 1 Dmitry V. Levin 2017-12-21 06:36:37 MSK
Это -m приводит к SIGPIPE (разумеется, в не вполне детерминированном месте):

$ xzgrep -F -р -m1 '' gcc.1.xz /no/such/file; kill -l $(($?-128))
.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35)
PIPE
Comment 2 Dmitry V. Levin 2017-12-21 06:38:02 MSK
(In reply to comment #1)
> Это -m приводит к SIGPIPE (разумеется, в не вполне детерминированном месте):

опечатка,
$ xzgrep -F -h -m1 '' gcc.1.xz /no/such/file; kill -l $(($?-128))
.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35)
PIPE