zsh-workers
 help / color / mirror / code / Atom feed
* Two different zsh sessions handle $* differently
@ 2017-08-22 17:22 Mikael Puhakka
  2017-08-22 18:40 ` Eitan Adler
  2017-08-23 19:17 ` Phil Pennock
  0 siblings, 2 replies; 9+ messages in thread
From: Mikael Puhakka @ 2017-08-22 17:22 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-08-24  9:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-22 17:22 Two different zsh sessions handle $* differently Mikael Puhakka
2017-08-22 18:40 ` Eitan Adler
2017-08-22 19:04   ` Daniel Shahaf
2017-08-22 19:19     ` Eitan Adler
2017-08-22 19:04   ` Mikael Puhakka
2017-08-23 19:17 ` Phil Pennock
2017-08-24  6:05   ` Mikael Puhakka
2017-08-24  8:48     ` Daniel Shahaf
2017-08-24  9:07       ` Mikael Puhakka

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).