Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Two different zsh sessions handle $* differently
- X-seq: zsh-workers 41581
- From: Mikael Puhakka <mr.progo@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Two different zsh sessions handle $* differently
- Date: Tue, 22 Aug 2017 20:22:52 +0300
- 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==
- 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
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author