On Fri, 28 Jan 2005 06:52:48 +0100, Paul wrote:
> 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.
Ah, that's good. But there are other things that need it too,
such as less and god knows what else. Is there a way to export
the variable permanently?
Miark
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________