Op Fri, 28 Jan 2005 00:45:25 -0500 schreef Miark:
>> Through a script?
>
>Got anything more specific? :-) My Perl is better than my bash,
>so I tried to get the following Perl one-liner on every shell:
>
> $ENV{TERM} = "xterm" if `echo \$TERM` =~ m/dumb/i;
>
>which works, but only as long as the script--a split second, and
>then Powershell continues to run without TERM.
>
>What's the proper way to do this with bash? (Although I am also
>curious as to how to make this work in Perl, too.)
In a bash-script it would look like this:
TERM=vt100
MicroEMACS # Insert proper command if this is wrong.
When this is together in the script, you do not need to export the TERM
variable, it will hold only for the session of that script.
Paul
--
My wife's other car is a broom.
http://www.nlpagan.net/linux.php
Have you visited http://twiki.mdklinuxfaq.org yet?
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________