Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
another compctl question
- X-seq: zsh-users 256
- From: "Adam R. Paul" <adamp@xxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: another compctl question
- Date: Fri, 21 Jun 1996 12:18:38 -0700 (PDT)
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<tab>' 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 <tab>' 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@xxxxxxx (work), apaul@xxxxxxx (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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author