zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: Problems with precmd/urxvt
Date: Tue, 04 Dec 2012 08:01:49 -0800	[thread overview]
Message-ID: <121204080149.ZM22046@torch.brasslantern.com> (raw)
In-Reply-To: <k9l09c$rio$1@ger.gmane.org>

On Dec 4,  3:10pm, Yuri D'Elia wrote:
}
} Humm, I tried with just "[ -t 0 ] && .." and seems to be enough.

Possibly the -t test is blocking until the terminal is ready.  That
would synchronize the shell with the parent urxvt, which would also
explain this:
 
} Strangely enough, not only I don't get the error anymore, but the 
} terminal title also seem to be always correctly set on startup

On the other hand I'd have expected zsh's internals to do the equivalent
of -t at some point during initialization, to decide whether the shell
is interactive in the first place, so maybe introducing a tiny delay
before the print is enough to break the race condition.


  reply	other threads:[~2012-12-04 16:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-03  9:20 Yuri D'Elia
2012-12-03 15:48 ` Bart Schaefer
2012-12-04 14:10   ` Yuri D'Elia
2012-12-04 16:01     ` Bart Schaefer [this message]
2012-12-05 14:35       ` Yuri D'Elia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=121204080149.ZM22046@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).