From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23485 invoked by alias); 24 Sep 2015 03:03:17 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36604 Received: (qmail 1756 invoked from network); 24 Sep 2015 03:03:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=+NZuI49xYcn8vJ12xcoFS5du/cy7CLoOQNhzXpDM4Oo=; b=W6zOE7h6jWtIBR/6y1LQjkoh2/PqLrVwj5nO62IETlRSJOYbuzkpTBvW4f7dHkhT/J KjH0+co9hDD5ToJGxCksrH3w+L5vhxVlmzHCGHaUHFKgVA4uMII3PWLbiAiBuJFO/FSh FsQhow0L6Hz0QvOM40AWDuRXbXatAgvJphGNvOuVLNsk91jpD4bXamJJ/PsVJklwCdrx zv1ByYP0ccaySOCDLGywOks4ihzOaLh3vUSZ6POhw5h9GM2DCFtDtVvYJRgwcYvdd5jA pGOHgvj0c2ykQGhVtKDP4d4rW1HDxdbgv37DWur8r1SiBUq9r+wfYwhpVSJNh4SSSWvG s9rQ== X-Gm-Message-State: ALoCoQn6hs7dyQsLOUAAFCFt0lvWI4ZP8G9hmV5F74b5Js6xGIlgQVJ5GtGpWOxA1dqkZrOj0dD6 X-Received: by 10.202.226.73 with SMTP id z70mr20566122oig.64.1443063793067; Wed, 23 Sep 2015 20:03:13 -0700 (PDT) From: Bart Schaefer Message-Id: <150923200310.ZM32266@torch.brasslantern.com> Date: Wed, 23 Sep 2015 20:03:10 -0700 In-Reply-To: Comments: In reply to Mikael Magnusson "zrecompile -p -R/-M has no effect" (Sep 23, 11:36pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Mikael Magnusson , zsh workers Subject: Re: zrecompile -p -R/-M has no effect MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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?