diff options
author | delphij <delphij@FreeBSD.org> | 2013-12-23 20:20:46 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-12-23 20:20:46 +0000 |
commit | c1209e63404d47c189447fe273f6325d2bae689c (patch) | |
tree | b8f2f00932a7e38edafaa8aa0b0db4805743b488 /usr.bin/bc | |
parent | 907f6b0d319fa859a35af4cdbba9161e7b647465 (diff) | |
download | FreeBSD-src-c1209e63404d47c189447fe273f6325d2bae689c.zip FreeBSD-src-c1209e63404d47c189447fe273f6325d2bae689c.tar.gz |
MFC r259058,r259060:
Remove -q from usage.
Document -q and --quiet as discouraged compatibility option.
Diffstat (limited to 'usr.bin/bc')
-rw-r--r-- | usr.bin/bc/bc.1 | 12 | ||||
-rw-r--r-- | usr.bin/bc/bc.y | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/usr.bin/bc/bc.1 b/usr.bin/bc/bc.1 index 4f071e0..0592acd 100644 --- a/usr.bin/bc/bc.1 +++ b/usr.bin/bc/bc.1 @@ -35,7 +35,7 @@ .\" .\" @(#)bc.1 6.8 (Berkeley) 8/8/91 .\" -.Dd January 22, 2010 +.Dd December 6, 2013 .Dt BC 1 .Os .Sh NAME @@ -43,7 +43,7 @@ .Nd arbitrary-precision arithmetic language and calculator .Sh SYNOPSIS .Nm bc -.Op Fl chlqv +.Op Fl chlv .Op Fl e Ar expression .Op Ar file ... .Sh DESCRIPTION @@ -349,6 +349,14 @@ math library, read when the .Fl l option is specified on the command line. .El +.Sh COMPATIBILITY +The +.Fl q +and +.Fl Fl quiet +options are no-ops for compatibility with some other implementations of +.Nm +and their use is discouraged. .Sh SEE ALSO .Xr dc 1 .Pp diff --git a/usr.bin/bc/bc.y b/usr.bin/bc/bc.y index a802f5a..a819e3f 100644 --- a/usr.bin/bc/bc.y +++ b/usr.bin/bc/bc.y @@ -1023,7 +1023,7 @@ static void usage(void) { - fprintf(stderr, "usage: %s [-chlqv] [-e expression] [file ...]\n", + fprintf(stderr, "usage: %s [-chlv] [-e expression] [file ...]\n", __progname); exit(1); } |