LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-06-2004, 09:27 PM   #1
psiakr3w
LQ Newbie
 
Registered: Jul 2004
Posts: 27

Rep: Reputation: 15
.bashrc error upon sourcing


When I source my .bashrc file, I get the following error:
Code:
$ . .bashrc
bash: TMOUT: readonly variable
So then I checked /etc/bashrc to see if it executes any other files:
Code:
# /etc/bashrc

# System wide functions and aliases
# Environment stuff goes in /etc/profile

# by default, we want this to get set.
# Even for non-interactive, non-login shells.
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
        umask 002
else
        umask 022
fi

# are we an interactive shell?
if [ "$PS1" ]; then
    case $TERM in
        xterm*)
            PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
            ;;
        *)
            ;;
    esac
    [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "

    if [ -z "$loginsh" ]; then # We're not a login shell
        for i in /etc/profile.d/*.sh; do
            if [ -x $i ]; then
                . $i
            fi
        done
    fi
fi

unset loginsh
and then I tried the following:
Code:
$ grep TMOUT /etc/profile.d/*.sh
/etc/profile.d/msec.sh:[ -n "$TMOUT" ] && typeset -r TMOUT
and that's as far as I got/comprehend. Does anyone have any suggestions as to what I could do to eleminate the error message?
 
Old 08-06-2004, 11:14 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
When you "source" .bashrc?

What exactly are you trying to do? And what are the contents of .bashrc?
 
Old 08-07-2004, 12:44 AM   #3
psiakr3w
LQ Newbie
 
Registered: Jul 2004
Posts: 27

Original Poster
Rep: Reputation: 15
entering ". .bashrc" on the command line in your home directory would be "sourcing your .bashrc" -- you do it after you update it, if you want the changes to take effect in the current shell. my .bashrc has mostly aliases in it and the following if statement:
Code:
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
that's why i investigated that file, and the files it loads as well.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash login sourcing .alias ned737 SUSE / openSUSE 2 11-17-2005 02:03 AM
Sourcing .bashrc shifty_eyes Linux - Newbie 3 09-25-2005 09:43 PM
error on .bashrc ashley75 Linux - General 2 09-19-2005 07:09 PM
sourcing a python config file? shanenin Programming 8 08-10-2005 02:19 PM
Error when sourcing file to finish program installation serendipitysdc Linux - Software 1 07-18-2004 10:16 PM

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

All times are GMT -5. The time now is 05:11 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