From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2238 invoked by alias); 22 Aug 2017 17:22:59 -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: 41581 Received: (qmail 24875 invoked by uid 1010); 22 Aug 2017 17:22:59 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f174.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.220.174):SA:0(-1.4/5.0):. Processed in 1.953388 secs); 22 Aug 2017 17:22:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM, SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: mr.progo@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=F3D7QIGEcx/29H6aGrBfaBoGyCfaXN5ru1U7M6TlzA8=; b=hMBonZGNTRlxDBIODuhdVSZKRRQMyxcMVs7K5RaV2CU17068Vsmp/uKshBDB74cucN NXIv1tfvgL852fSKbMiN/oSa8wxqob7QPHCwNdl7JVflEyYV9RMpeUOm2nLwHg4YCvHL uSjGf2+ZisvdSjRDiOyoXjLGG0f6oDMFCrtMlqanYGnHIIiz+aX8xjHxfciZlb6945JH Kggbj95qcwQ9pAVDXk0y0oTJRyoOvD3gYaBfvW8earDLq2ugvSaoe1PzpXLelaHtYp02 EhKAFy5hyDPtPzFdeRg0kqkQHbIcsbJg+s9YyNshzu/8141tu5dtJgpZK6J9XGt84KlM rC8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=F3D7QIGEcx/29H6aGrBfaBoGyCfaXN5ru1U7M6TlzA8=; b=J49tzwIJ0LZ9HIIzrhYZsAu9FYrtISYVLL4mCqFnF3s/v1nks8EnZ7L6YAhRXLdnWJ Wt2dWVxANCufHgcBihvJtOFWP/ZZOgQ8uvfz27aNXHM1ezyJOLqHcVS9aR8UmBFNrQVh 2H9err+PwHBfMeHffY5CP9sj4ITN7yf9++4oUFypQ426cLomSdEyx4ZpD5BNbaJg4Bf5 KwEwHcto4/LbT3K3zbbNemAHLexkWeCAxwslRaDzd8cuGRF/6xSYZe19B1hAnCbCFfnn 2CawzXW7YPBg7AShva8MpRG1AFlodkgxNZam4wXjv1QN+Dd+Ie+Zn4WqfPtjsnK4gBuQ +kcw== X-Gm-Message-State: AHYfb5grVOfs5LCI90VH3bF5u2xQpcRVkukCMB4N35+Cy3BgrkHqk3b9 /W/DzWcG5EBrbelI1Yo9Hrxp3prWnjB1 X-Received: by 10.55.159.134 with SMTP id i128mr2175984qke.72.1503422572541; Tue, 22 Aug 2017 10:22:52 -0700 (PDT) MIME-Version: 1.0 From: Mikael Puhakka Date: Tue, 22 Aug 2017 20:22:52 +0300 Message-ID: Subject: Two different zsh sessions handle $* differently To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Hi zsh-workers, Recently I noticed that my journal script has started to lose data. Then I noticed that this is somehow in how zsh handles my little helper function. This peculiarly affects one zsh session and not many others that I can see. This is what happens in a freshly launched session: (~) echo $ZSH_VERSION 5.2 (~) whence -f j j () { noglob journal.py "$*" } (~) j Test. ABC this is a test. argv ['/home/progo/pika/journal.py', 'Test. ABC this is a test.'] And this is what the faulty session does: (~) echo $ZSH_VERSION 5.2 (~) whence -f j j () { noglob journal.py "$*" } (~) j Test. ABC this is a test. argv ['/home/progo/pika/journal.py', 'Test.'] The python script is modified to be trivial: (~) head -n5 /home/progo/pika/journal.py #!/usr/bin/env python3 import sys print ('argv', sys.argv) sys.exit (0) The faulty session might be a longer running one, if there's a way to find out zsh-uptime, let me know. But I have several terminals open with at least as old zsh sessions running, they behave correctly. Unless X crashes or there's a long electricity break, I'll have these sessions open if anyone comes up with something I can run to help with this issue. BR, -- Mikael