LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2004, 02:25 PM   #1
gamor
Member
 
Registered: Jul 2004
Posts: 77

Rep: Reputation: 15
export cmd


Hi,
I am trying to set few env. variables
I was running scsh shell, I was doing: setenv STEM_DIR release3.2-linux/data
it worked fine. Fine I wanted to work with bash shell and when I tried to use the export cmd I got errors, probably with the syntax that I cannot fix.
I do this: export STEM_DIR = "release3.2-linux/data" and I get :
bash: export: `=': not a valid identifier
bash: export: `release3.2-linux/data': not a valid identifier

Any help is appreciated
Thanks
 
Old 11-21-2004, 02:32 PM   #2
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
#STEM_DIR ="release3.2-linux/data"
#export STEM_DIR

and if you change the value it still stays global - I think theres a way to do it on one line but it escapes me at the moment

Last edited by The_JinJ; 11-21-2004 at 02:34 PM.
 
Old 11-21-2004, 02:35 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Re: export cmd

Quote:
Originally posted by gamor
Hi,
I am trying to set few env. variables
I was running scsh shell, I was doing: setenv STEM_DIR release3.2-linux/data
it worked fine. Fine I wanted to work with bash shell and when I tried to use the export cmd I got errors, probably with the syntax that I cannot fix.
I do this: export STEM_DIR = "release3.2-linux/data" and I get :
bash: export: `=': not a valid identifier
bash: export: `release3.2-linux/data': not a valid identifier

Any help is appreciated
Thanks
Just give those spaces a miss ...
Code:
export STEM_DIR="release3.2-linux/data"
and it's all sweet :)


Cheers,
Tink
 
Old 11-21-2004, 02:36 PM   #4
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Re: Re: export cmd

Quote:
Originally posted by Tinkster
Just give those spaces a miss ...
Code:
export STEM_DIR="release3.2-linux/data"
and it's all sweet


Cheers,
Tink
Even more efficient lol
 
Old 11-21-2004, 02:45 PM   #5
gamor
Member
 
Registered: Jul 2004
Posts: 77

Original Poster
Rep: Reputation: 15
Thank u all , it is workin
 
Old 11-21-2004, 02:52 PM   #6
gamor
Member
 
Registered: Jul 2004
Posts: 77

Original Poster
Rep: Reputation: 15
Just one question, is there a way to check what env variable is set
thnaks
 
Old 11-21-2004, 02:55 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Yep

Code:
env

Cheers,
Tink
 
  


Reply


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
CMD For Linux ebrind Red Hat 9 11-29-2004 10:51 AM
What is the cmd for RH 9.0 ipconfig? Thaidog Red Hat 6 02-20-2004 11:16 AM
No 'locate' cmd in SuSE 9.0?? pH* Linux - Newbie 12 01-18-2004 02:08 AM
CSH: "cmd >& file" or "cmd </dev/null >& file" stefanlasiewski Programming 1 09-08-2003 05:19 PM
Cmd for connecting to internet? BearClaw Slackware 7 07-14-2003 11:49 AM


All times are GMT -5. The time now is 08:53 AM.

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