LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   -bash: HISTTIMEFORMAT: readonly variable (https://www.linuxquestions.org/questions/slackware-14/bash-histtimeformat-readonly-variable-843673/)

chavete88 11-11-2010 08:58 AM

-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!!:)

chavete88 11-11-2010 08:58 AM

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!!

catkin 11-11-2010 09:09 AM

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.


All times are GMT -5. The time now is 02:58 AM.