[Info-vax] SHOW LOGICAL
hb
becker.avd at gmail.com
Sat Mar 3 06:52:27 EST 2012
On Mar 2, 9:06 pm, hel... at astro.multiCLOTHESvax.de (Phillip Helbig---
undress to reply) wrote:
> If SHOW LOGICAL has an exact match, it displays it and nothing else. If
> it has no match, it says so. However, if the argument to SHOW LOGICAL
> contains a wildcard, then all the corresponding tables (e.g. those in
> LNM$FILE_DEV or all if /TABLE=* was specified) are shown, even if they
> have no match. An ugly workaround is
>
> $ PIPE SHOW LOGICAL FOO/TABLE=* | SEARCH SYS$PIPE FOO
>
> though this might not include all the information one wants.
>
> Why can't show logical display only the tables with a match?
Dunno. Buglet or defectlet? Looks a feature, now, and it is too late
for an incompatible change :-)
In your workaround, you don't have a wildcard in the argument. Anyway,
a slightly better workaround which includes more information is to
search for "= ", as in
$ pipe sh log decw$incl*/table=* | search sys$pipe "= "
"DECW$INCLUDE" = "SYS$SYSROOT:[DECW$INCLUDE]"
= "SYS$SYSROOT:[DECW$INCLUDE.EXTENSIONS]"
= "SYS$SYSROOT:[DECW$INCLUDE.ICE]"
= "SYS$SYSROOT:[DECW$INCLUDE.SM]"
$
VMS search uses RFAs to display a window which goes back as in /
window=(2,0). Unfortunately sys$pipe doesn't support RFAs. But if you
have GNV or a GNU grep on your system you may want to use:
$ pipe sh log decw$incl*/table=* | mc psx$root:[bin]grep "-iB2" "= "
(DECW$LOGICAL_NAMES)
"DECW$INCLUDE" = "SYS$SYSROOT:[DECW$INCLUDE]"
= "SYS$SYSROOT:[DECW$INCLUDE.EXTENSIONS]"
= "SYS$SYSROOT:[DECW$INCLUDE.ICE]"
= "SYS$SYSROOT:[DECW$INCLUDE.SM]"
$
Is that "all the information" you are looking for?
More information about the Info-vax
mailing list