LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2009, 10:47 AM   #1
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Rep: Reputation: 22
-bash: HISTSIZE: readonly variable -bash: HISTFILESIZE: readonly variable


On one of my servers I see this when I log in. What does this mean and how can I get it to go away? Everything seems to work fine, but none of my other machines give this error.

-bash: HISTSIZE: readonly variable
-bash: HISTSIZE: readonly variable
-bash: HISTFILESIZE: readonly variable
 
Old 12-08-2009, 11:51 AM   #2
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
weird. paste ~/.bashrc
 
Old 12-08-2009, 11:57 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
and maybe
/etc/profile
and grep for HIST through /etc/profile.d/
 
Old 12-08-2009, 12:01 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Please post the contents of any of these files that exist:
  • /etc/profile
  • ~/.bash_profile
  • ~/.bash_login
  • ~/.profile
  • ~/.bashrc
 
Old 12-08-2009, 12:51 PM   #5
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Original Poster
Rep: Reputation: 22
Well it is my /etc/profile but I'm still confused. This exact /etc/profile is on all my machines, but I only get the error for one particular machine.

# /etc/profile
# System wide environment and startup programs
# Functions and aliases go in /etc/bashrc

# Set Prompt
export PS1="[\u@\h \W]\\$ "

# Set up $PATH properly
if [ `id -u` -eq 0 ]; then
export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin"
else
export PATH="/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/wp8/wpbin:/usr/local/Office51/bin:/usr/local/saord/bin.linux"
fi

# Default variables
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
export TMOUT=86400
ulimit -c 1000000

# IRAF
export iraf=/iraf/iraf/
export IRAFARCH=redhat

if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
umask 022
else
umask 022
fi

export USER=`id -un`
export LOGNAME=$USER
export MAIL="/var/spool/mail/$USER"
export HOSTNAME=`/bin/hostname`

######## set specific shell behavior -- Added by RPD, June 10, 2004
# shopt -s checkwinsize cmdhist histappend
export HISTFILE=~/.bash_history
export HISTSIZE=1000
export HISTFILESIZE=20000

readonly HISTFILE
readonly HISTSIZE
readonly HISTFILESIZE
########

# XMMS skins
if [ ! -d /usr/share/xmms/Skins ] && [ -x /usr/bin/xmms ]; then
export SKINSDIR=/usr/local/share/xmms_skins
fi

# Source profiles
for i in /etc/profile.d/*.sh ; do
if [ -x $i ]; then
. $i
fi
done
unset i

# Set the monitors to turn off after a certain time
if [ "$TERM" = "xterm" ] ; then
/usr/X11R6/bin/xset dpms 600 1800 3600 &> /dev/null
fi
 
  


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
How to get variable from text file into Bash variable mcdef Linux - Software 2 06-10-2009 01:15 PM
Problem with bash script - variable name within variable name steven.c.banks Linux - Newbie 3 03-10-2009 03:08 AM
BASH: instad of echo-ing, I just want to assing to a bash variable... how?? rylan76 Linux - Newbie 9 11-28-2008 08:46 AM
How to remove readonly variable? hocheetiong Linux - Newbie 1 04-21-2008 04:04 PM
unset a readonly variable hamster Linux - General 2 05-19-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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