[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
history -s doesn't working inside "." script
From: |
jeeva |
Subject: |
history -s doesn't working inside "." script |
Date: |
Wed, 13 Nov 2002 16:11:02 -0500 (EST) |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: solaris2.8
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='solaris2.8' -DCONF_MACHTYPE='i386-pc-solaris2.8'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2
uname output: SunOS eagles 5.8 Generic_108529-10 i86pc i386 i86pc
Machine Type: i386-pc-solaris2.8
Bash Version: 2.05a
Patch Level: 0
Release Status: release
Description:
history -s inside . or source script appends the history to
the privious history.
Repeat-By:
I am using history -s inside a script to add new commands to
history and I call that script as below
prompt> source ~/bin/commandbrowser.sh
or
prompt> . ~/bin/commandbrowser.sh
and the commandbrowser.sh script looks somewhat like this
----------- S C R I P T ----------
CMD="echo jeeva"
history -s $CMD
$CMD
----------------------------------
Fix:
[Description of how to fix the problem. If you don't know a
fix for the problem, don't include this section.]
- history -s doesn't working inside "." script,
jeeva <=