Re: Environment vanishing (was Re: FVWM: Emacs does not...)

From: Andrew J Cosgriff <Andrew.Cosgriff_at_cc.monash.edu.au>
Date: Thu, 15 May 1997 07:46:35 +1000

"Kendrick" == Kendrick Vargas <kvarga01_at_fiu.edu> writes:
Kendrick> well, this can be a problem. Sun OS's (in my experience)
Kendrick> don't care what shell you specify for your .xinitrc or
Kendrick> .xsession, Solaris will always process it as a /bin/sh
Kendrick> script. Besides, you can set environment variables inside a
Kendrick> shell script. It's not hard to add a line like

Kendrick> export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

Kendrick> or something like that, but even doing this, it doesn't
Kendrick> work...

...probably because it's not valid Bourne Shell.

export VAR=value

only works in ksh (and zsh and bash)

if it's plain sh you have to do

VAR=value
...
export VAR VAR2 VAR3

I'm quite sure I used to have Solaris running my .xinitrc as a ksh
script, but that was over 6 months ago, in a previous life...

Enjoy,
 Andrew
-- 
 - Andrew J. Cosgriff -                  ajc_at_bing.wattle.id.au    (PGP/MIME ok)
 +61 3 9905 1165 (bh) 9905 4746 (fax)    http://www-personal.monash.edu.au/~ajc
     GOOD-NIGHT, everybody ... Now I have to go administer FIRST-AID to my
                              pet LEISURE SUIT!!
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed May 14 1997 - 16:47:04 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST