Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (backward-)kill-argument
- X-seq: zsh-workers 16840
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: (backward-)kill-argument
- Date: Fri, 15 Mar 2002 15:49:35 +0000
- In-reply-to: <1020315153147.ZM2228@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <m2zo1cxvvl.fsf@xxxxxxxxxxxxxxxxxxxxx> <15505.46831.979708.369781@xxxxxxxxxxxxxxxxxx> <1020315153147.ZM2228@xxxxxxxxxxxxxxxxxxxxxxx>
On Mar 15, 3:31pm, I wrote:
}
} words="${(z)LBUFFER}"
} while [[ "${${(@M)words:#[\{\}]}[-1]}" == '{' ]]
} do
} LBUFFER="${LBUFFER%${words[-1]}[[:space:]]#}"
} words="${(z)LBUFFER}"
} done
I suppose that could be done slightly faster as
words[-1]=()
while [[ "${${(@M)words:#[\{\}]}[-1]}" == '{' ]]
do
LBUFFER="${LBUFFER%${words[-1]}[[:space:]]#}"
words[-1]=()
done
if it really is the case that deleting from the end of the string won't
change the (z) parse?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author