Re: environment variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 10 February 2003 06:10 pm, Aaron Konstam wrote:
> On Mon, Feb 10, 2003 at 02:36:43PM -0800, Jerry Roy wrote:
> > Hi List,
> >
> > How do I permanently set an environment variable so it works across
> > reboots? I have the command down, just don't know which is the
> > correct file (.bashrc? .profile?) to place it in. Someone said there
> > is a "Better" way. Please offer suggestions on writing the command.
> >
> > set $ICAClient:/test/icadir
> > export $ICAClient
>
> The above seems strange sysntax for bash.
> ICAClient=/test/icadir
> export $ICAClient
>
> seems more appropriate.

I don't believe that's correct either.
[mfratoni@paradox mfratoni]$ ICAClient=/test/icadir
[mfratoni@paradox mfratoni]$ export $ICAClient
bash: export: `/test/icadir': not a valid identifier


Either:
export ICAClient=/test/icadir
or
ICAClient=/test/icadir
export ICAClient

Both of which result in:

[mfratoni@paradox mfratoni]$ echo $ICAClient
/test/icadir

- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+SD3tn/07WoAb/SsRAik8AJ4p9XBYxJiASyzRixKSgCbFF+YfMwCguNQk
ucN3yiQSD4Ty9EnycOlWYC8=
=C26L
-----END PGP SIGNATURE-----



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux