Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _argument, a repeated local, again
- X-seq: zsh-workers 8728
- From: Alexandre Duret-Lutz <alexandre.duret@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: _argument, a repeated local, again
- Date: 22 Nov 1999 17:59:07 +0000
- In-reply-to: Sven Wischnowsky's message of "Mon, 22 Nov 1999 10:39:35 +0100 (MET)"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Sender: aduret@xxxxxxxxx
~ % rlogin foo<TAB>
~ % rlogin fooprefix=ant
suffix=''
That was a local left in a while loop.
--- _arguments.old Mon Nov 22 17:49:39 1999
+++ _arguments Mon Nov 22 17:52:13 1999
@@ -166,7 +166,7 @@
if comparguments -i "$autod" "$@"; then
local nm="$compstate[nmatches]" action noargs aret expl local
local next direct odirect equal single match matched ws tmp1 tmp2
- local opts subc
+ local opts subc prefix suffix
if comparguments -D descr action; then
comparguments -C subc
@@ -288,8 +288,6 @@
fi
if [[ -n "$opts" && -z "$aret$matched" &&
nm -eq compstate[nmatches] ]]; then
-
- local prefix suffix
prefix="${PREFIX#*\=}"
suffix="$SUFFIX"
--
Alexandre Duret-Lutz
Messages sorted by:
Reverse Date,
Date,
Thread,
Author