Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 1998 19:37:37 +0200
From:      Eivind Eklund <eivind@yes.no>
To:        current@FreeBSD.ORG
Subject:   Bug in sh?
Message-ID:  <19980417193737.36274@follo.net>

next in thread | raw e-mail | index | archive | help
--- Tear Here (start) ---
#!/bin/sh
eval `SHELL=sh && export SHELL && tset -s -Q \?$TERM < /dev/tty`
echo $TERM
--- Tear Here (end) ---

and

--- Tear Here (start) ---
#!/bin/sh
. <<EOF
`SHELL=sh && export SHELL && tset -s -Q \?$TERM < /dev/tty`
EOF
echo $TERM
--- Tear Here (end) ---

should as far as I can tell be equal.

The second version doesn't work - it exits immediately, and seems to
run tset _after_ the shell has quit.

Eivind.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980417193737.36274>