From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5188 invoked by alias); 3 Oct 2015 10:45:21 -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: 36757 Received: (qmail 10672 invoked from network); 3 Oct 2015 10:45:20 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=SAubkuGiLNDtk1GnU628tXLN5sBnzsPB8CwG1bX+W/M=; b=0YUITcn163MREAST9stER4CLp3qbMo2N+YuiUGgqA8TKf8Cw0oQZIkaYomuRg/X5Wl J1bjx29DHMeWz1HbaUPgJe3rW6DQzwQAPVt2hSXVJ8nipXjaz81Z//2I4p5QwoJL5SXH D/nWukC3UrUTBgHG1HVrC/uNSmJyzUkn0ITOPy8QCSMZW9jlyG7zNSyg1Rekodyr2jcz wR3G0fp3TuYexahilb1B0DssoWa98PS5SLWUMo4XDh3MUAjduAN/6jrfqV7fwMwABRzl dPox5ebONU3R34d3tMRCTVsLC5GwOWGREUcRuZvCQhyG3wVp2ZekNtaeWTHXR+hFU5n7 zqwQ== X-Received: by 10.112.157.99 with SMTP id wl3mr7240964lbb.98.1443869117153; Sat, 03 Oct 2015 03:45:17 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Sat, 3 Oct 2015 12:44:57 +0200 Message-ID: Subject: Zed obtains fresh text of function To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, creating simple function tst in */site-functions: echo "Hello tst abcd" doing: autoload zed autoload tst zed -f tst And then repeating: zed -f tst after each update of the tst file/function =E2=80=93 will result in zed loading the most recent version of the function, i.e. from disk. Not sure if this is expected, however I face an obvious situation =E2=80=93= I update autoloaded function and run it, and it is the disk version that is being run, not the one from first load =E2=80=93 i.e. Zsh constantly reloads the function. It's hard to report that as it's bunch of full size functions (zntools). I report the similar zed behavior as it can have the same source of problem. Tested on 5.0.2 and on current head (64061e5). Best regards, Sebastian Gniazdowski