Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#1876 closed defect (fixed)

gzexe posix tail

Reported by: robert@… Owned by: lfs-book@…
Priority: normal Milestone:
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

$ cp /bin/ls . $ gzexe ./ls ./ls: 54.6% $ gzexe -d ./ls tail: cannot open `+22' for reading: No such file or directory

I think we need to:

sed 's/tail +/tail -n +/' -i gzexe

in Gzip's source.

Change History (4)

comment:1 by Matthew Burgess, 18 years ago

Robert,

Having had a cursory glance at /usr/bin/gzexe, I'd agree with you (see lines 120 and 150). However, your testcase doesn't trigger the warning on my machine and I can't figure out why. I don't have POSIXLY_CORRECT or _POSIX2_VERSION defined in my environment, but they shouldn't be required, IIUC. What version of gzip and coreutils do you have installed?

comment:2 by Matthew Burgess, 18 years ago

Wow, then I actually read your testcase properly and saw the 'gzip -d' invocation. Sorry about that. Bug report confirmed!

comment:3 by Matthew Burgess, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in r7787.

comment:4 by Jeremy Huntwork, 17 years ago

Milestone: 6.3

Milestone 6.3 deleted

Note: See TracTickets for help on using tickets.