From: Felix Rosencrantz <f_rosencrantz@yahoo.com>
To: zsh-workers <zsh-workers@sunsite.auc.dk>
Subject: Re: PATCH: Completion matching control test. (Try 2)
Date: Wed, 17 May 2000 19:35:14 -0700 (PDT) [thread overview]
Message-ID: <20000518023514.10350.qmail@web1303.mail.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 559 bytes --]
> On May 16, 9:11pm, Felix Rosencrantz wrote:
> } --- Bart Schaefer <schaefer@candle.brasslantern.com> wrote:
> } > This works for me:
> } >
> } > print -lr "COMPADD:{${match[6]//[$'\r\n']/}}"
> }
> } Great. Works for me, too. Will use that. I'll send a patch when the
> } changes make it into the repository.
There's no need to call "tr". Where possible we should use zsh.
So here's the patch.
-FR.
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
[-- Attachment #2: patch3.txt --]
[-- Type: text/plain, Size: 495 bytes --]
Index: Test/comptest
===================================================================
--- zsh/Test/,comptest Wed May 17 05:31:32 2000
+++ zsh/Test/comptest Wed May 17 19:23:40 2000
@@ -107,8 +107,7 @@
elif (( 0 <= $mbegin[5] )); then
print -lr "MESSAGE:{$match[5]}"
elif (( 0 <= $mbegin[6] )); then
- result=`echo $match[6] | tr -d '\012\015'`
- print -lr "COMPADD:{$result}"
+ print -lr "COMPADD:{${${match[6]}//[$'\r\n']/}}"
fi
done
done
next reply other threads:[~2000-05-18 2:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-18 2:35 Felix Rosencrantz [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-05-17 11:57 Sven Wischnowsky
2000-05-17 10:33 Sven Wischnowsky
2000-05-17 12:30 ` Tanaka Akira
2000-05-17 4:11 Felix Rosencrantz
2000-05-17 10:14 ` Bart Schaefer
2000-05-16 6:04 Felix Rosencrantz
2000-05-16 8:55 ` Peter Stephenson
2000-05-16 17:23 ` Bart Schaefer
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=20000518023514.10350.qmail@web1303.mail.yahoo.com \
--to=f_rosencrantz@yahoo.com \
--cc=zsh-workers@sunsite.auc.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).