[Info-vax] Some questions on software for VMS 7.3 VAX
hb
end.of at inter.net
Mon Jan 11 12:21:10 EST 2016
On 01/11/2016 04:52 PM, lists at openmailbox.org wrote:
> Not a lot to like about UNIX but I still can't get used to not having
> a version command or option on VMS/VAX. Had to see what sys$help
> there was to find out what version I had.
The version is usually in the compiler listing, on each page. On recent
VMS versions with "pipe" one can get to the version with something like
$ pipe fort/old/list=sys$output nl:/noobj | (read sys$pipe x ;
x=f$edit(x,"compress,trim") ; x=x-f$element(0," ",x)-f$element(1,"
",x)-"Page 1" ; write sys$output f$edit(x,"trim"))
Compaq Fortran 77 V7.2-180
$
Or, if you like GNV more than UNIX :-)
bash-4.3$ dcl 'fort/old/list=sys$output nl:/noobj' | head -n1 | awk
'{for (i=3; i<NF-1; i++) printf "%s ", $i; printf "\n"}'
Compaq Fortran 77 V7.2-180
bash-4.3$
Shouldn't be a big deal to write a generic script to do this for all the
compilers, available on your system.
More information about the Info-vax
mailing list