From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14908 invoked from network); 24 Feb 1997 23:27:46 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 24 Feb 1997 23:27:46 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA17869; Mon, 24 Feb 1997 18:22:46 -0500 (EST) Resent-Date: Mon, 24 Feb 1997 18:11:49 -0500 (EST) Date: Mon, 24 Feb 1997 13:31:28 -0700 From: John Harres Subject: Re: grouping in patterns in extended compctl In-reply-to: "Your message of Mon, 24 Feb 97 20:11:33 GMT." <21287.199702242011@stone.dcs.warwick.ac.uk> To: Zefram Cc: zsh-users@math.gatech.edu Message-id: <199702242031.NAA26691@horseman.uwyo.edu> MIME-version: 1.0 X-Mailer: exmh version 2.0gamma 1/27/96 Content-type: multipart/signed; boundary="==_Exmh_416127526104P"; micalg=pgp-md5; protocol="application/pgp-signature" Content-transfer-encoding: 7bit X-Url: http://horseman.uwyo.edu/~harres X-Authentication-warning: horseman.uwyo.edu: localhost [127.0.0.1] didn't use HELO protocol X-MTS: smtp Resent-Message-ID: <"Lbewr1.0.WH4.q0Y4p"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/711 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu --==_Exmh_416127526104P Content-Type: text/plain; charset=us-ascii 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 http://horseman.uwyo.edu/~harres University of Wyoming 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 --==_Exmh_416127526104P Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: 2.6.2 iQB1AwUBMxH6nwxlFYvtP/ENAQGSCQL7Bsix1/4GY2LszN2EcXILcuVPyr3ktQ/8 vZNKOyxHYs1Rmg2cHzcu+XHuDXgLn+NJEqd9TIOzE40PLHw5RBHX16kOlU4f28TD AG68Ga+yFEPxJHEYqjr/45ERcjBd64l+ =zZKA -----END PGP MESSAGE----- --==_Exmh_416127526104P--