From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id FAA28273 for ; Sat, 22 Jun 1996 05:37:47 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id PAA09307; Fri, 21 Jun 1996 15:31:04 -0400 (EDT) Resent-Date: Fri, 21 Jun 1996 15:30:41 -0400 (EDT) From: "Adam R. Paul" To: zsh-users@math.gatech.edu Subject: another compctl question X-Mailer: ScoMail 3.0.Ca MIME-Version: 1.0 Date: Fri, 21 Jun 1996 12:18:38 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Message-ID: <9606211218.aa04587@gargoyle.pdev.sco.com> Resent-Message-ID: <"6MBgq3.0.sG2.WXlon"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/256 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Hello, I'm attempting to make a compctl for a command (scoadmin) that has arguments (case insensitive) that look like: ... SCOadmin Event Logs Manager Security Profile Manager SNMP Agent Manager Software Manager Sysadmsh Legacy ... What I would like is to be able to type 'scoadmin sec' and get 'scoadmin security profile manager', or 'scoadmin "security profile manager"', but I'm having much difficulty gettting the options into an array w/o word splitting on the options. What I have now (that doesn't work) is: compctl -k ("`scoadmin -t | tr '[A-Z]' '[a-z]' | \ awk '{printf(\"\\"%s\\" \", $0}'`") scoadmin Entering 'scoadmin ' lists: \"scoadmin \"snmp \"sysadmsh event logs profile \"security \"software agent legacy\" manager\" as completions, which isn't too useful... Any ideas? (This is zsh-2.6beta20 on SCO OpenServer 5, BTW) Blesssed be, _Adam ----- Adam Paul - adamp@sco.com (work), apaul@got.net (home) SCO Engineering Any opinions expressed here are necessarily not SCO's "Be beautiful and I will love you," she said. "Love me and I will be beautiful," he said. They argued for days... - Somerset Winterbutton