From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 10 00:39:31 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 354A2106564A for ; Mon, 10 Nov 2008 00:39:31 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 14DD48FC13 for ; Mon, 10 Nov 2008 00:39:31 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.123.2.205] (p53.kientzle.com [66.166.149.53]) by kientzle.com (8.12.9/8.12.9) with ESMTP id mAA0dUtv059413; Sun, 9 Nov 2008 16:39:30 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <491782BD.9090009@freebsd.org> Date: Sun, 09 Nov 2008 16:39:25 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eitan Adler References: <491764C3.5020504@gmail.com> In-Reply-To: <491764C3.5020504@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: uname -c: alias for uname -rms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 00:39:31 -0000 Are there any precedents for this option? If not, then I don't see the point. If you have to tell someone to send you the output of uname, you may as well tell them to use uname -rms. (I prefer uname -v personally.) Tim Eitan Adler wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Personally I find that uname -rms to be the most useful set of uname > flags (especially when providing support in a public setting). > > inspiration: > http://groups.google.com/group/lucky.freebsd.chat.digest/browse_frm/thread/b0c44dad9f63f2bd > > Any comments on the following patch: > > - --- uname.c 2008-11-09 17:26:52.000000000 -0500 > +++ uname.old 2008-11-09 17:26:41.000000000 -0500 > @@ -88,11 +88,14 @@ > setup_get(); > flags = 0; > > - - while ((ch = getopt(argc, argv, "aimnprsv")) != -1) > + while ((ch = getopt(argc, argv, "acimnprsv")) != -1) > switch(ch) { > case 'a': > flags |= (MFLAG | NFLAG | RFLAG | SFLAG | VFLAG); > break; > + case 'c': > + flags |= (RFLAG | MFLAG | SFLAG); > + break; > case 'i': > flags |= IFLAG; > break; > > - -- > Eitan Adler > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.9 (FreeBSD) > > iEYEARECAAYFAkkXZMMACgkQtl8kq+nCzNFtJQCfcabTV0uAAQhRhgYcSaSqM2Zt > H2EAoItxfCpFSGVmcziEiI0uCMz0RGo5 > =PFEl > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >