Date: Mon, 23 Feb 1998 11:41:59 -0600 (CST) From: Tony Kimball <alk@East.Sun.COM> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5826: uname '-p' option Message-ID: <199802231741.LAA07107@compound.east.sun.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802231741.LAA07107>