[TriLUG] scripting question

Mike McLean mikem.rtp at gmail.com
Thu Mar 17 17:30:35 EST 2005


Chris Bullock <cgbullock at yahoo.com> wrote:
> sorry using kshell not c shell and when i run the script I get "logout" is
> my scripts name.
> coping history to myhistory
> ./logout[3]: fc: no history (yet)

It sounds like you are running this as a separate script rather than
sourcing it in the current shell.  Since it is running as a brand new
shell (and likely a non-interactive on at that) there is no history.

I'm not very familiar with kshell, but perhaps there is an option you
can set that will cause the history to be saved automatically.

otoh, why not just install bash or zsh?



More information about the TriLUG mailing list