Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
error with zed
- X-seq: zsh-users 20671
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: error with zed
- Date: Wed, 30 Sep 2015 17:22:15 -0700
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
With this dummy function:
function z ()
{
select selection in ${path[@]}
}
I source it and run it:
$ z
1) /aWorking/Bin 3) /usr/sbin 5) /sbin
2) /usr/local/bin 4) /usr/bin 6) /bin
MAKE A SELECTION ... 1
...
But trying to edit the function with zed:
$ zed -f z
z () {
select selection in ${path[@]}
done
}
... and on exiting:
(eval):4: parse error near `done'
So far I've only found one of my functions that I can't edit
with zed, and it boils down to the single line above. God
knows where the 'done' is coming from. The full length function
that throws this error runs just fine but zed won't eat it.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author