From: Mirar <mirar@infovav.se>
To: Andrew Main <zefram@tao.co.uk>
Cc: sweth@astaroth.nit.gwu.edu, zsh-users@math.gatech.edu
Subject: completion hacking
Date: 15 Dec 1997 00:03:26 +0100 [thread overview]
Message-ID: <827m974jep.fsf_-_@beldandy.infovav.se> (raw)
In-Reply-To: Mirar's message of "12 Dec 1997 22:06:14 +0100"
Could this be written in a better way?
cvsignore="*~ *# .#* *.o *.a CVS . .."
cvsaddp() {
setopt localoptions nullglob
[[ -e CVS/Entries ]] && reply=(`(sed -ne 's:^/\([^/]*\)/.*$:E\1:p' -e 's:^/\([^/]*\)/-.*$:E\1:p' <CVS/Entries; ( ls -a1 | sed 's:^\(.*\)$:D\1:g' ); (ls -ad1 $(echo "$cvsignore"; cat .cvsignore 2>/dev/null ) 2>/dev/null | sed 's:^\(.*\)$:I\1:g' ) ) | sort +0.1 | uniq --skip-chars=1 -u | sed -ne 's/^[^I]\(.*\)$/\1/p'`)
}
The goal (which is reached) is to get a list of all possible things
that could be sent to "cvs add".
__________________________________________________________________________
Idonex AB Telefon Telefax nalle
Skolgatan 10 013-376814 013-376801 0708-376867
582 34 Linköping mirar@idonex.se http://www.idonex.se/
next prev parent reply other threads:[~1997-12-14 23:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-12 17:42 zsh lists being used for spam-gathering? Timothy Luoma
1997-12-12 18:20 ` Bruce Stephens
1997-12-12 18:49 ` Sweth Chandramouli
1997-12-12 19:19 ` Andrew Main
1997-12-12 20:20 ` Mirar
1997-12-12 20:26 ` Andrew Main
1997-12-12 20:31 ` Mirar
1997-12-12 20:59 ` Andrew Main
1997-12-12 21:06 ` Mirar
1997-12-14 23:03 ` Mirar [this message]
1997-12-15 11:18 ` completion hacking Andrew Main
1997-12-15 10:06 ` zsh lists being used for spam-gathering? Bruce Stephens
1997-12-12 21:42 ` Richard Coleman
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=827m974jep.fsf_-_@beldandy.infovav.se \
--to=mirar@infovav.se \
--cc=sweth@astaroth.nit.gwu.edu \
--cc=zefram@tao.co.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).