Bug 912

Summary: PATCH: Fix head(1) call in regress/yes-head.sh
Product: Portable OpenSSH Reporter: Jason McCormick <jason>
Component: MiscellaneousAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: All   
OS: All   
URL: http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=109259431107655
Attachments:
Description Flags
Path to use 'head -n LINES' instead of 'head -LINES'
none
Set _POSIX2_VERSION to unbreak GNU head none

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.