LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-19-2005, 03:24 PM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Rep: Reputation: 30
error on .bashrc


Hi all,

Below is the copy of what I have in .bashrc:

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

#Oracle Installation


ORACLE_BASE=/opt/oracle; export ORACLE_BASE

CRS_HOME=$ORACLE_BASE/product/10.2.0/crs; export CRS_HOME
DB9I_HOME=$ORACLE_BASE/product/9.2.0; export DB9I_HOME
DB10G_HOME=$ORACLE_BASE/product/10.2.0; export DB10G_HOME
AGENT_HOME=$ORACLE_BASE/product/10.2.0/agent; export AGENT_HOME
BASE_PATH=.:$PATH:/usr/sbin:/usr/ccs/bin:/usr/bin:/usr/bin/X11:/usr/local/bin
BASE_PATH=$BASE_PATH:/usr/opt/java142:/usr/opt/java142/bin; export BASE_PATH

alias dba='cd /opt/oracle/dba'
alias envcrs='. /opt/oracle/dba/envcrs'
alias env10g='. /opt/oracle/dba/env10g'
alias env9i='. /opt/oracle/dba/env9i'
alias envagent='. /opt/oracle/dba/envagent'




every time when I tried to compile this file, I got an error:

$source .bashrc
-bash: id: command not found
-bash: id: command not found
-bash: id: command not found
-bash: [: too many arguments
-bash: tput: command not found
-bash: wc: command not found
-bash: tput: command not found
-bash: [: : integer expression expected



How can I fix this error???

thanks,
 
Old 09-19-2005, 04:46 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Code:
# include the configurations from etc/bashrc 
if [ -f etc/bashrc ]; then
    source etc/bashrc
fi
this is how it should look
 
Old 09-19-2005, 08:09 PM   #3
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Quote:
Originally posted by freakyg
Code:
# include the configurations from etc/bashrc 
if [ -f etc/bashrc ]; then
    source etc/bashrc
fi
this is how it should look
ehhh... no. That points to a (probably) non existant file.
Quote:
Originally posted by ashley75
How can I fix this error???
What's in your /etc/bashrc?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.bashrc error upon sourcing psiakr3w Linux - General 2 08-07-2004 01:44 AM
Where is .bashrc? Luantum Slackware 3 12-01-2003 01:29 AM
.bashrc roofy Slackware 7 05-06-2003 02:32 PM
bashrc nobu Slackware 6 03-21-2003 11:53 AM
.bashrc prasad Linux - General 1 04-14-2001 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration