zsh-workers
 help / color / mirror / code / Atom feed
From: martin f krafft <madduck@debian.org>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk, 537596@bugs.debian.org
Subject: Re: Bug#537596: regression: parse error near `()' in function definition
Date: Mon, 20 Jul 2009 10:46:33 +0200	[thread overview]
Message-ID: <20090720084633.GA27558@lapse.rw.madduck.net> (raw)
In-Reply-To: <20090720092757.77e812c7@news01>

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]

also sprach Peter Stephenson <pws@csr.com> [2009.07.20.1027 +0200]:
>   `l' in the function definition is in command position and is expanded
>   as an alias, defining `/bin/ls' and `-F' as functions which call
>   `/bin/ls', which gets a bit recursive.  This can be avoided if you use
>   `function' to define a function, which doesn't expand aliases.  It is
>   possible to argue for extra warnings somewhere in this mess.

Indeed, this fixed my problem, and I also renamed the function to
something else, now that I found out about the nameclash. Warnings
would be nice.

However, there still seems to be some regression, but I cannot quite
reproduce this for other cases. E.g. it is still possible to define
a function -F without the error.

-- 
 .''`.   martin f. krafft <madduck@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
there are only 10 types of people in the world:
those who understand binary and those who don't.

[-- Attachment #2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

      parent reply	other threads:[~2009-07-20  8:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090719171651.GA7217@piper.oerlikon.madduck.net>
2009-07-19 23:20 ` Clint Adams
2009-07-20  4:18   ` Bart Schaefer
2009-07-20  8:27   ` Peter Stephenson
2009-07-20  8:37     ` Mikael Magnusson
2009-07-20  8:50       ` Peter Stephenson
2009-07-20  9:10         ` Mikael Magnusson
2009-07-20  9:15           ` Peter Stephenson
2009-07-20  8:46     ` martin f krafft [this message]

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=20090720084633.GA27558@lapse.rw.madduck.net \
    --to=madduck@debian.org \
    --cc=537596@bugs.debian.org \
    --cc=pws@csr.com \
    --cc=zsh-workers@sunsite.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).