From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Bug in autocompletion in CVS
Date: Tue, 15 Jul 2003 03:54:00 +0000 [thread overview]
Message-ID: <1030715035400.ZM7190@candle.brasslantern.com> (raw)
In-Reply-To: <478.1057231464@csr.com>
On Jul 3, 12:24pm, Peter Stephenson wrote:
}
} I think there may be a similar problem when checking for modified files,
} but as the test is currently [...very complex...]
} I don't feel like investigating more closely at the moment.
Here's that substitution broke down into its components:
local ents stats
ents="$(<"$realdir"CVS/Entries)"
ents=(${(@f)ents})
ents=(${(@M)ents:#/*})
ents=(${(@)ents#/})
ents=(${(@)ents/${slash}[^${slash}]#${slash}//})
ents=(${(@)ents%/[^/]#/[^/]#})
stats="$(LC_ALL=C builtin stat -gn +mtime -F '%a %b %e %T %Y' ${realdir}*(D) 2>/dev/null)"
stats=(${(f)stats})
stats=(${stats##*/})
stats=(${stats/ //})
stats=(${stats//(#m)[][*?()<|^~#\\]/\\$MATCH})
stats=${(j:|:)stats}
ents=(${(@)ents:#${~stats}})
ents=(${(@)ents%%/*})
[[ -n ${pat::="${(@j:|:)ents//(#m)[][*?()<|^~#\\]/\\$MATCH}"} ]]
I don't immediately see what to do to simplify it or to be sure it quotes
spaces in filenames correctly, though.
prev parent reply other threads:[~2003-07-15 3:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-03 8:43 Vincent Driessen
2003-07-03 11:24 ` Peter Stephenson
2003-07-15 3:54 ` Bart Schaefer [this message]
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=1030715035400.ZM7190@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/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).