Bug 912 - PATCH: Fix head(1) call in regress/yes-head.sh
Summary: PATCH: Fix head(1) call in regress/yes-head.sh
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: -current
Hardware: All All
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL: http://marc.theaimsgroup.com/?l=opens...
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-16 12:47 AEST by Jason McCormick
Modified: 2006-10-07 11:36 AEST (History)
0 users

See Also:


Attachments
Path to use 'head -n LINES' instead of 'head -LINES' (491 bytes, patch)
2004-08-16 12:48 AEST, Jason McCormick
no flags Details | Diff
Set _POSIX2_VERSION to unbreak GNU head (829 bytes, patch)
2004-12-06 17:35 AEDT, Damien Miller
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason McCormick 2004-08-16 12:47:04 AEST
This is a itty bitty patch to change head to use '-n LINES' instead of
'-LINES' since GNU's coreutils is deprecating that usage for POSIX 1003.1-2001
compliance.  GNU's doc reference:

http://www.gnu.org/software/coreutils/manual/html_chapter/coreutils_5.html#SEC18

I believe 'hean -n LINES' is portable everywhere.
Comment 1 Jason McCormick 2004-08-16 12:48:03 AEST
Created attachment 697 [details]
Path to use 'head -n LINES' instead of 'head -LINES'
Comment 2 Jason McCormick 2004-08-16 12:48:51 AEST
> I believe 'hean -n LINES' is portable everywhere.

Make that 'head -n LINES'

Comment 3 Darren Tucker 2004-08-30 21:55:04 AEST
It has been suggested that setting (and exporting) _POSIX2_VERSION=199209
someplace like test-exec.sh will cause head (and possibly other programs?) to
accept older options.  IMHO that's the best option.
Comment 4 Damien Miller 2004-12-06 17:35:19 AEDT
Created attachment 748 [details]
Set _POSIX2_VERSION to unbreak GNU head

Like this.
Comment 5 Darren Tucker 2005-02-08 20:18:01 AEDT
Patch id #748 applied, thanks.
Comment 6 Darren Tucker 2006-10-07 11:36:43 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.