Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Nov 2008 17:31:31 -0500
From:      Eitan Adler <eitanadlerlist@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   uname -c: alias for uname -rms
Message-ID:  <491764C3.5020504@gmail.com>

next in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?491764C3.5020504>