From owner-freebsd-bugs Mon Feb 23 12:00:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA29870 for freebsd-bugs-outgoing; Mon, 23 Feb 1998 12:00:06 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA29852; Mon, 23 Feb 1998 12:00:02 -0800 (PST) (envelope-from gnats) Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA29029 for ; Mon, 23 Feb 1998 11:55:54 -0800 (PST) (envelope-from Mailer-Daemon@East.Sun.COM) Received: from East.Sun.COM ([129.148.1.241]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id LAA21734 for ; Mon, 23 Feb 1998 11:43:02 -0800 Received: from suneast.East.Sun.COM by East.Sun.COM (SMI-8.6/SMI-5.3) id OAA03165; Mon, 23 Feb 1998 14:42:56 -0500 Received: from compound.east.sun.com by suneast.East.Sun.COM (SMI-8.6/SMI-SVR4) id OAA08309; Mon, 23 Feb 1998 14:42:39 -0500 Received: (from alk@localhost) by compound.east.sun.com (8.8.8/8.7.3) id LAA07107; Mon, 23 Feb 1998 11:41:59 -0600 (CST) Message-Id: <199802231741.LAA07107@compound.east.sun.com> Date: Mon, 23 Feb 1998 11:41:59 -0600 (CST) From: Tony Kimball Reply-To: alk@East.Sun.COM To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5826: uname '-p' option Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5826 >Category: bin >Synopsis: cross-platform script compatibility >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 23 12:00:00 PST 1998 >Last-Modified: >Originator: Tony Kimball >Organization: Dis >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: I find many SVR4 scripts using the -p option of uname to get BSD uname -m functionality. Here's a one-line to provide script-compatibility. >How-To-Repeat: >Fix: ; cd usr.bin/uname; cvs diff -c3 uname.c Index: uname.c =================================================================== RCS file: /work/repository/FreeBSD/src/usr.bin/uname/uname.c,v retrieving revision 1.2 diff -c -3 -r1.2 uname.c *** uname.c 1997/03/29 04:33:22 1.2 --- uname.c 1998/02/23 17:36:09 *************** *** 72,77 **** --- 72,78 ---- case 'a': flags |= (MFLAG | NFLAG | RFLAG | SFLAG | VFLAG); break; + case 'p': case 'm': flags |= MFLAG; break; >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message