Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting an environment variable 1

Status
Not open for further replies.

ddrillich

Technical User
Jun 11, 2003
546
0
0
US
Good Day,

I did the following -

Code:
autonomy @ sbkj2ksrchtxtf03 :: /opt/autonomy/scripts
! % ==> echo $SHELL
/bin/bash

autonomy @ sbkj2ksrchtxtf03 :: /opt/autonomy/scripts
! % ==> export GDFONTPATH=/usr/java/jdk1.5.0_14/jre/lib/fonts/LucidaTypewriterRegular.ttf

autonomy @ sbkj2ksrchtxtf03 :: /opt/autonomy/scripts
! % ==>  echo $GDFONTPATH
/usr/java/jdk1.5.0_14/jre/lib/fonts/LucidaTypewriterRegular.ttf

autonomy @ sbkj2ksrchtxtf03 :: /opt/autonomy/scripts
! % ==> set
....
USER=autonomy
_=/usr/java/jdk1.5.0_14/jre/lib/fonts/LucidaTypewriterRegular.ttf
....

It's not clear to me why set doesn't show the environment variable.

Regards,
Dan
 
Hi

Dan said:
It's not clear to me why set doesn't show the environment variable.
Are you sure ?

The [tt]set[/tt] shell builtin lists the variables first, then the functions. The entire list on my machine has 11542 lines, while my XTerm's scrollback buffer is set to 1024 lines. So personally I have absolutely no chance to see the variables when running [tt]set[/tt] alone, but [tt]set | grep GDFONTPATH[/tt] clearly show it.


Feherke.
 
Great. 'set | grep GDFONTPATH' shows it.

Many thanks,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top