zsh-users
 help / color / mirror / code / Atom feed
From: John Harres <Harres@UWyo.Edu>
To: Zefram <zefram@dcs.warwick.ac.uk>
Cc: zsh-users@math.gatech.edu
Subject: Re: grouping in patterns in extended compctl
Date: Mon, 24 Feb 1997 13:31:28 -0700	[thread overview]
Message-ID: <199702242031.NAA26691@horseman.uwyo.edu> (raw)
In-Reply-To: "Your message of Mon, 24 Feb 97 20:11:33 GMT." <21287.199702242011@stone.dcs.warwick.ac.uk>

[-- Attachment #1: Type: text/plain, Size: 1475 bytes --]

On Mon 24 Feb 97, zefram@dcs.warwick.ac.uk wrote:

> John Harres wrote:
> >   'c[-2,add][-2,delete][-2,modify][-2,query] c[-1,volume] s[-] , s[-m_]' -k
>  volparams -- sc
> >
> 
> You could repeat the "c[-2,...] c[-1,volume]" part after the comma.
After some refinement, that line is now:

   'w[1,add][1,delete][1,modify][1,query] w[2,volume] s[-] , 
w[1,add][1,delete][1,modify][1,query] w[2,volume] s[-m_]' -k volparams -

which doesn't seem to work for the -m_ stuff.  I was just hoping that there
was an easier way of handling this, since this is just the first one for the
array.

dbobj=(cycle cyclev device file finss gidmap history host job license location 
m
ediatype osref pool poolacl rack saveacl saveset slot uidmap volacl volalias 
vol
ume wo woparam xgid xuid)

> 
> >This could end up being one of the longest compctl's ever built!
> 
> Have you looked at the gcc compctl in Misc/compctl-examples?

Yes, I have, and I still stand by my statement.  This program was originally
written by some VMS people who converted it to UNIX, thus it's quite verbose
in its options.

Thanks for the help.  Any ideas why the -m_ doesn't work?  Maybe because the
previous s[-] is a prefix of [-m_] ?  Workarounds?

John
-- 
John Harres <harres@uwyo.edu>        http://horseman.uwyo.edu/~harres
<A HREF="http://www.uwyo.edu">University of Wyoming</A> 
Finger harres@horseman.uwyo.edu for PGP public key.
Key fingerprint =  FC B4 72 D6 37 A7 A1 73  BE 8B F3 E2 99 68 BF 5A 



[-- Attachment #2: Type: application/pgp-signature, Size: 239 bytes --]

  reply	other threads:[~1997-02-24 23:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-24 16:33 John Harres
1997-02-24 20:11 ` Zefram
1997-02-24 20:31   ` John Harres [this message]
1997-02-24 23:43     ` Zefram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199702242031.NAA26691@horseman.uwyo.edu \
    --to=harres@uwyo.edu \
    --cc=zefram@dcs.warwick.ac.uk \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).