From owner-freebsd-questions Thu Jun 28 6:29:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id EE37737B405 for ; Thu, 28 Jun 2001 06:29:55 -0700 (PDT) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by probity.mcc.ac.uk with esmtp (Exim 2.05 #7) id 15Fbrg-0000E9-00 for freebsd-questions@freebsd.org; Thu, 28 Jun 2001 14:29:48 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.11.3/8.11.1) id f5SDTlO37024 for freebsd-questions@freebsd.org; Thu, 28 Jun 2001 14:29:47 +0100 (BST) (envelope-from jcm) Date: Thu, 28 Jun 2001 14:29:47 +0100 From: j mckitrick To: freebsd-questions@freebsd.org Subject: exporting TERM from a script Message-ID: <20010628142946.A36955@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="h31gzZEtNLTqOjlF" X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Here is a very simple script for changing my TERM setting manually. Why doesn't it work? Inside the script, TERM has the value 'cons25,' but when it exits, it goes back to vt100 or xterm-color. Shouldn't export fix this? I've used TERM in my shell startup and exported it after setting it, and it works fine. I can also change it manually from the console, and it works fine. It is just this file. Jonathon -- Microsoft complaining about the source license used by Linux is like the event horizon calling the kettle black. --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=gonet #!/bin/sh echo "gonet!" cat ~/.mutt/.mutt0 ~/.mutt/.mutt2 > ~/.muttrc TERM=cons25;export TERM echo $TERM --h31gzZEtNLTqOjlF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message