zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Mikael Magnusson <mikachu@gmail.com>, zsh workers <zsh-workers@zsh.org>
Subject: Re: zrecompile -p -R/-M has no effect
Date: Wed, 23 Sep 2015 20:03:10 -0700	[thread overview]
Message-ID: <150923200310.ZM32266@torch.brasslantern.com> (raw)
In-Reply-To: <CAHYJk3QKOoxC=62Twzo9ZNqxWVv6+KAO-GFxgmoj3g5rDzJ-Jg@mail.gmail.com>

On Sep 23, 11:36pm, Mikael Magnusson wrote:
} Subject: zrecompile -p -R/-M has no effect
}
} % zcompile() { >&2 echo -E - zcompile "$@"; builtin zcompile "$@" }
} % touch .zshrc; zrecompile -p -R .zshrc
} zcompile -t .zshrc.zwc
} re-compiling .zshrc.zwc: zcompile .zshrc.zwc .zshrc
} succeeded
} 
} It ate my -R.

It looks (set -x) as though the first "getops :tqp opt" loop is
consuming the -R and passing it through the the (*) branch which
stashes it in $tmp, which is then used to shift it off $argv at
the end of the loop.

The shift expression (line 55) is

    shift OPTIND-${#tmp:-1}

I suspect it needs to be

    shift OPTIND-${#tmp}-1

Anyone care to confirm?


  reply	other threads:[~2015-09-24  3:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-23 21:36 Mikael Magnusson
2015-09-24  3:03 ` Bart Schaefer [this message]
2015-09-24  3:32   ` Mikael Magnusson

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=150923200310.ZM32266@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=mikachu@gmail.com \
    --cc=zsh-workers@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).