Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zrecompile -p -R/-M has no effect
- X-seq: zsh-workers 36604
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>, zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: zrecompile -p -R/-M has no effect
- Date: Wed, 23 Sep 2015 20:03:10 -0700
- In-reply-to: <CAHYJk3QKOoxC=62Twzo9ZNqxWVv6+KAO-GFxgmoj3g5rDzJ-Jg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author