From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e1b09e73b1b4327c,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-12 04:22:02 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!doc.ic.ac.uk!charlie.lif.icnet.uk!europa.lif.icnet.uk!coop From: coop@europa.lif.icnet.uk (Richard Coop) Newsgroups: comp.unix.osf.osf1 Subject: ksh: why do functions appear in .sh_history Date: 12 Oct 1994 11:15:16 GMT Organization: Imperial Cancer Research Fund Message-ID: <37ggg4$jte@charlie.lif.icnet.uk> NNTP-Posting-Host: europa.lif.icnet.uk X-Newsreader: TIN [version 1.2 PL2] I wonder if anyone can help here. We're running Digital's OSF/1 and I'm developing an application with the supplied Korn shell. I've created a file containing many functions and this file must be SOURCED. Every time this file is sourced the history file is appended with all these function definitions. I do not want to run the program in a separate shell nor do I wish to exec it. I could use the autoload command to load in the functions at run time but this would still make a single copy of the entire function list to .sh_history. As expected, changing the HISTFILE variable has no effect. Any ideas? Richard Coop, Systems Support, Imperial Cancer Research Fund, London, UK.