Project

General

Profile

Actions

Bug #6755

open

join -v 2 - <file> has seek errors on pipe input

Added by Richard PALO over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2016-03-19
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

as noticed in libtool bootstrap, native join has issues with providing unpairable lines on piped input.

gnu join doesn't have this problem.

Here is the test case:

richard@omnis:/home/richard/src/tjoin$ cat final-modules 
all-shells-tests
announce-gen
bootstrap
do-release-commit-and-tag
extract-trace
funclib.sh
funclib.sh-tests
gendocs
git-version-gen
gitlog-to-changelog
gnu-web-doc-update
gnumakefile
gnupload
inline-source
maintainer-makefile
options-parser
options-parser-tests
readme-release
test-framework-sh
test-framework-sh-tests
update-copyright
update-copyright-tests
useless-if-before-free
vc-list-files
vc-list-files-tests
richard@omnis:/home/richard/src/tjoin$ cat main-modules 
announce-gen
bootstrap
do-release-commit-and-tag
extract-trace
funclib.sh
gendocs
git-version-gen
gitlog-to-changelog
gnu-web-doc-update
gnumakefile
gnupload
inline-source
maintainer-makefile
options-parser
readme-release
update-copyright
useless-if-before-free
vc-list-files
richard@omnis:/home/richard/src/tjoin$ LC_ALL=C sort -u < main-modules | LC_ALL=C join -v 2 - final-modules 
all-shells-tests
funclib.sh-tests
options-parser-tests
test-framework-sh
test-framework-sh-tests
update-copyright-tests
join: -: seek error [Illegal seek]
join: write error [Illegal seek]
richard@omnis:/home/richard/src/tjoin$ LC_ALL=C sort -u < main-modules > sorted-main-modules
richard@omnis:/home/richard/src/tjoin$ cat sorted-main-modules 
announce-gen
bootstrap
do-release-commit-and-tag
extract-trace
funclib.sh
gendocs
git-version-gen
gitlog-to-changelog
gnu-web-doc-update
gnumakefile
gnupload
inline-source
maintainer-makefile
options-parser
readme-release
update-copyright
useless-if-before-free
vc-list-files
richard@omnis:/home/richard/src/tjoin$  LC_ALL=C join -v 2 sorted-main-modules final-modules 
all-shells-tests
funclib.sh-tests
options-parser-tests
test-framework-sh
test-framework-sh-tests
update-copyright-tests
vc-list-files-tests

and

richard@omnis:/home/richard/src/tjoin$ LC_ALL=C sort -u < main-modules | LC_ALL=C gjoin -v 2 - final-modules 
all-shells-tests
funclib.sh-tests
options-parser-tests
test-framework-sh
test-framework-sh-tests
update-copyright-tests
vc-list-files-tests

No data to display

Actions

Also available in: Atom PDF