Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-06-2004, 10:27 PM   #1
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:
$ . .bashrc
bash: TMOUT: readonly variable
So then I checked /etc/bashrc to see if it executes any other files:
# /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
        umask 022

# are we an interactive shell?
if [ "$PS1" ]; then
    case $TERM in
            PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
    [ "$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

unset loginsh
and then I tried the following:
$ grep TMOUT /etc/profile.d/*.sh
/etc/profile.d/[ -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-07-2004, 12:14 AM   #2
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, 01:44 AM   #3
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:
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
that's why i investigated that file, and the files it loads as well.


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
bash login sourcing .alias ned737 SUSE / openSUSE 2 11-17-2005 03:03 AM
Sourcing .bashrc shifty_eyes Linux - Newbie 3 09-25-2005 10:43 PM
error on .bashrc ashley75 Linux - General 2 09-19-2005 08:09 PM
sourcing a python config file? shanenin Programming 8 08-10-2005 03:19 PM
Error when sourcing file to finish program installation serendipitysdc Linux - Software 1 07-18-2004 11:16 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:30 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
Open Source Consulting | Domain Registration