Article View: net.lang.c++
Article #265Re: enhancement: have C++ announce release number when it runs
From: W. H. Pollock x4575 3S235
Date: Tue, 22 Jul 1986 23:28
Date: Tue, 22 Jul 1986 23:28
19 lines
1562 bytes
1562 bytes
In article <1317@sq.UUCP> ian@sq.UUCP (Ian Darwin) writes:
[in reply to request for verbose CC command]
>... The approach we have taken is to provide an option
>(-V seems common enough for this purpose) to many of our programs;
>under -V, the program prints a version number in addition to
>its normal output.
Another good approach is the one taken by the korn shell; the version
information is kept as an SCCS string. If you want to know the version
of ksh, you type "what ksh". If you want to use "-V", a better method
is to have the "CC -V" print the version info and quit, ignoring any other
arguments. (This way you don't have to provide a dummy dot-C file to just
find the version info.)
From the strong (left) arm of W. H. Pollock,
UUCP: ...{ihnp4,cbatt}!cbnap!whp
"The opinions expressed above are ficticious. Any resemblance
to the opinions of persons living or dead is purely coincidental."
Technical Details
Message-ID:
<152@cbnap.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!cbdkc1!cbnap!whpReferences:
<379@mntgfx.mntgfx.UUCP> <1317@sq.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!cbdkc1!cbnap!whp From: whp@cbnap.UUCP (W. H. Pollock x4575 3S235) Newsgroups: net.lang.c++ Subject: Re: enhancement: have C++ announce release number when it runs Message-ID: <152@cbnap.UUCP> Date: Tue, 22-Jul-86 19:28:58 EDT Article-I.D.: cbnap.152 Posted: Tue Jul 22 19:28:58 1986 Date-Received: Wed, 23-Jul-86 09:11:04 EDT References: <379@mntgfx.mntgfx.UUCP> <1317@sq.UUCP> Reply-To: whp@cbnap.UUCP (W. H. Pollock x4575 3S235) Organization: AT&T Bell Laboratories, Columbus Lines: 19 Keywords: release UNIX-philosophy -V SCCS