zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: error with zed
Date: Wed, 30 Sep 2015 17:22:15 -0700	[thread overview]
Message-ID: <560C7CB7.8090107@eastlink.ca> (raw)

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.


             reply	other threads:[~2015-10-01  0:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01  0:22 Ray Andrews [this message]
2015-10-01  1:52 ` Bart Schaefer
2015-10-01  2:57   ` Ray Andrews
2015-10-01  3:48     ` Ray Andrews

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=560C7CB7.8090107@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /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).