LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-11-2010, 08:58 AM   #1
chavete88
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
-bash: HISTTIMEFORMAT: readonly variable


Hello everybody!! i am new en this forum and linux.
I have a problem when i tried run this command (export HISTTIMEFORMAT="%F %T ") on slackware 13.0. the answer is the following (-bash: HISTTIMEFORMAT: readonly variable)
I am running this command on the bash like root.

Thanks for your help!!
 
Old 11-11-2010, 08:58 AM   #2
chavete88
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Hello everybody!! i am new en this forum and linux.
I have a problem when i tried run this command (export HISTTIMEFORMAT="%F %T ") on slackware 13.0. the answer is the following (-bash: HISTTIMEFORMAT: readonly variable)
I am running this command on the bash like root.

Thanks for your help!!
 
Old 11-11-2010, 09:09 AM   #3
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
The bash builtin readonly has probably been used in one of the bash startup files when setting HISTTIMEFORMAT.

You could examine each of the possible files for HISTTIMEFORMAT
Code:
grep HISTTIMEFORMAT /etc/profile ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc
If that doesn't identify the cause of the problem the system may be using bash' --rcfile option or the $BASH_ENV environment variable.
 
  


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
Bash: How do I read data from a variable while that variable is being populated? theaceoffire Programming 4 04-23-2010 02:29 PM
-bash: HISTSIZE: readonly variable -bash: HISTFILESIZE: readonly variable deathsfriend99 Linux - Newbie 4 12-08-2009 12:51 PM
How to get variable from text file into Bash variable mcdef Linux - Software 2 06-10-2009 01:15 PM
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 - Distributions > Slackware

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