On Mon, 20 Mar 2006, Wouter Verhelst wrote:

On Sun, Mar 19, 2006 at 12:49:33PM -0500, Thomas Dickey wrote:
Stuff like this (in your .login) is already portable, works on every
unix platform.

#!/bin/sh
for name in foo bar xterm
do
        if ( tput -T$name am 2>/dev/null )
        then
                echo ok $name
        fi
done

Yes; but if I then change my terminal (temporarily or permanently), it
does break.

not under the same assumptions that your suggestion requires.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to