LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-29-2006, 08:47 PM   #1
sunhui
Member
 
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, 09:50 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

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

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

it is
/bin/bash
 
Old 11-29-2006, 09:56 PM   #4
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
your bash options have
Code:
nounset         on
somewheree the shell has
set -u
or
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:24 PM.

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
Open Source Consulting | Domain Registration