Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problems with precmd/urxvt
- X-seq: zsh-users 17457
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Problems with precmd/urxvt
- Date: Tue, 04 Dec 2012 08:01:49 -0800
- In-reply-to: <k9l09c$rio$1@ger.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <k9hqsl$s4a$1@ger.gmane.org> <121203074835.ZM20740@torch.brasslantern.com> <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author