[ale] history command in script

Fletch fletch at phydeaux.org
Tue Mar 12 12:56:27 EST 2002


>>>>> "David" == David S Jackson <deepbsd at earthlink.net> writes:

[...]


    David> But "history" doesn't seem to get executed.  Is that
    David> because it's a builtin?  Why should that make a difference?
    David> Is there another reason why "history" doesn't get executed?

        R'ing TFM, it looks like the `history' builtin isn't enabled
by default in non-interactive shells.  Look for the part about the
`set' command, specifically the part under `-o option-name'.  It
probably would work if you added `set -o history' before trying to
call the history command.


-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 933-0600 x211(w)  |  scary questions." -- Jules                =(___)=
                      |                                               U

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list