Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-29-2006, 09:47 PM   #1
Registered: Jan 2006
Location: taiwan
Posts: 156

Rep: Reputation: 30
why "unbound variable"

In my system , one of user has a strange problem , when echo $PATH , it will show the searching PATH normally , but if I try to echo something which is not defined , for example , if echo $ufpoasufapfvsadf , then it show "unbound variable" , I also try another RH server but do not have the similiar problem , can advise what is wrong ? thx
Old 11-29-2006, 10:50 PM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
what shell are you using? You can tell by entering this command:
echo $SHELL
Old 11-29-2006, 10:55 PM   #3
Registered: Jan 2006
Location: taiwan
Posts: 156

Original Poster
Rep: Reputation: 30
Originally Posted by matthewg42
what shell are you using? You can tell by entering this command:
echo $SHELL
thx reply ,

it is
Old 11-29-2006, 10:56 PM   #4
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
your bash options have
nounset         on
somewheree the shell has
set -u
set -o nounset
being called on it
i think
set +o nounset
should fix it as well if you can't find where it's being set
(in true unix fasion + takes the option away where - adds it -- go figure)
look at bash options with
set -o


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
Cannot connect to X11 window server using ":).0" as DISPLAY variable cclack Linux - Newbie 4 09-06-2007 10:32 PM
Shell Variable available within Samba "print command" thibert Linux - Networking 0 12-12-2005 02:02 PM
tcsh problem "Unknown color-ls variable 'su' " grizos Debian 4 11-22-2005 11:54 AM
Bash Script: Problem running variable command containing "" Paasan Programming 2 01-21-2004 02:45 AM
How can I do some modification to my initialized "env" environment variable? yuzuohong Linux - General 3 12-18-2002 04:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:43 AM.

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