[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 6/6] use print or printf or cat as $ECHO

From: Ralf Wildenhues
Subject: Re: [PATCH 6/6] use print or printf or cat as $ECHO
Date: Mon, 10 Nov 2008 22:05:37 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

* Eric Blake wrote on Mon, Nov 10, 2008 at 09:50:39PM CET:
> Ralf Wildenhues <Ralf.Wildenhues <at>> writes:
> > Where did you get the idea that TMOUT is a reliable way to detect ksh?
> You're right - the existence of TMOUT is not a reliable way to detect
> ksh, and I had better not document it as such.  However, the
> non-existence of TMOUT is (so far) a reliable way to detect a non-ksh
> shell, and since (so far) only ksh/pdksh provide print(1), as well as
> always providing a default for TMOUT, a failed TMOUT test is a way to
> shave off two forks on a shell that is not likely to have print(1).

zsh provides a print(1) which has -r, I don't know since which version.
It does not set TMOUT by default.  Did you try zsh before applying the

FWIW, all ksh versions I've tried do set TMOUT.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]