Different colors per user

Jay R. Ashworth jra at baylink.com
Wed Feb 20 16:02:10 PST 2008


On Wed, Feb 20, 2008 at 06:48:34PM -0500, Brian K. White wrote:
> > Quoting Joe Chasan (Wed, 20 Feb 2008 18:14:24 -0500):
> > 
> >> On Wed, Feb 20, 2008 at 05:32:24PM -0500, Brian K. White wrote:
> > [...]
> >>> Just TEXTNORMAL=0x... export TEXTNORMAL in the environment by any   
> >>> scheme you want before calling the top level menu. ie: ~/.profile ,
> > [...]
> >> no such luck, that was the first thing i tried (though checked runmenu and
> >> clerk, not dscreen) - colors in enviroment got overriden by those in
> >> ../fp/lib/config.
> > 
> > Environment variables override config file settings.  Double-check your
> > settings.
> 
> You know, it's weird, in reaction to this, which I _know_ works
> because we do it all the time as I said, I tried it again manualy,
> using p and runmenu instead of dscreen just to be sure, and I'll be
> dipped if it didn't work for me either the first few times.
>
> I think it was the semicolon. I didn't put one in my example, and I
> have some scripts that do work that don't have a semicolon in that
> spot, but I think they must all happen to be bash, vs sco's stock
> plain sh or even ksh.

VARIABLE=value export VARIABLE 

and

VARIABLE=value; export VARIABLE 

are by definition equivalent, and have been since V7 -- I think the V7
manual set actually explicitly says this, but it's been a long time
since I cracked the covers.

The first uses the shell's habit of putting x=y things at the beginning
of a line into that command's environment; the latter puts the variable
in the local shell's environment; but either should work except in one
very slim corner case: it's probably implementation dependent whether
*the running shell* gets the variable in the former case; not pertinent
here.

I always do it the latter way, myself, FWIW.

Cheers,
-- jra
-- 
Jay R. Ashworth                   Baylink                      jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates     http://baylink.pitas.com                     '87 e24
St Petersburg FL USA      http://photo.imageinc.us             +1 727 647 1274

	     Those who cast the vote decide nothing.
	     Those who count the vote decide everything.
	       -- (Joseph Stalin)



More information about the Filepro-list mailing list