zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Funny bug when autoloading with syntax error
Date: Thu, 03 Feb 2000 18:30:20 +0000	[thread overview]
Message-ID: <E12GQyL-0000Pv-00.2000-02-03-18-27-17@cmailg7.svr.pol.co.uk> (raw)

Autoload the following function:

if (( 1 )): then   # note colon instead of semicolon
  true
fi

This loads silently, unlike trying it at the command line which gives a
parse error near `fi', which is not unexpected.  `which fn' gives

fn () {
        if (( 1 ))
        then
                : then
        fi
        true
}

This is, not to put too fine a point on it, wrong.

-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>


             reply	other threads:[~2000-02-03 18:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-03 18:30 Peter Stephenson [this message]
2000-02-04  9:34 Sven Wischnowsky

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=E12GQyL-0000Pv-00.2000-02-03-18-27-17@cmailg7.svr.pol.co.uk \
    --to=pws@pwstephenson.fsnet.co.uk \
    --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).