Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-22-2011, 05:23 PM   #1
Registered: Oct 2002
Posts: 496

Rep: Reputation: 62
set environment variable is tcl

How are environment variable set in tcl?

I googled and binged but can't find a single example. I see tons of discussion on how to get environment variables but nothing on setting environment variables.

I tried "set $env(MYVAR) xxxx" but it didn't work.
Old 04-22-2011, 05:51 PM   #2
Registered: Oct 2002
Posts: 496

Original Poster
Rep: Reputation: 62
I see what I was doing wrong.

I need to leave the "$" out of my set command. "set env(MYVAR) xxxx" instead of "set $env(MYVAR) xxxx"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set environment variable yuan13452 Linux - Software 7 09-03-2007 06:23 PM
How to set a value of environment variable? ukrainet Linux - Newbie 1 12-28-2004 05:33 AM
Set Environment Variable lloyd_stevens Linux - Software 1 07-30-2003 01:38 PM
How to set a environment variable in rh? yenonn Linux - Newbie 11 02-21-2003 11:24 PM
how to set CC environment variable General 2 12-18-2001 02:02 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration