Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!cidsv01.cid.aes.doe.CA!cidsv01.cid.aes.doe.CA!afsipmh From: afsipmh@cid.aes.doe.CA (Patrick Hertel) Newsgroups: comp.unix.questions Subject: why doesn't history work in a shell script? Message-ID: <1990Jun6.131927.22604@cid.aes.doe.CA> Date: 6 Jun 90 13:19:27 GMT Sender: afsipmh@cid.aes.doe.CA (Patrick Hertel) Reply-To: afsipmh@cid.aes.doe.CA (Patrick Hertel) Distribution: na Organization: Environment Canada Lines: 18 We are slowly converting to UNIX here so forgive me if my question seems dumb. Is it possible to get history to work inside a shell script - i.e. get a history of the steps in the script which could then be appended to a file for later perusal? I tried : #! /bin/csh ls who date history The history command was mute. I even tried redirecting it to /dev/tty and got diddly. Is it doing anything? If it is what, and where is it going? -- Pat Hertel Canadian Meteorological Centre Analyst/Programmer Environment Canada "Nobody loves me but my mother and she could be jiving too" - B.B. King