Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!purdue!decwrl!labrea!agate!eris!mwm From: mwm@eris.berkeley.edu (Mike (I'm in love with my car) Meyer) Newsgroups: comp.lang.scheme Subject: Re: Scheme shellscripts Message-ID: <12601@agate.BERKELEY.EDU> Date: 27 Jul 88 03:35:10 GMT References: <1666@kalliope.rice.edu> <880716144458.6.JAMES@GREEN-GRASS.LCS.MIT.EDU> <1700@kalliope.rice.edu> Sender: usenet@agate.BERKELEY.EDU Organization: Missionaria Phonibalonica Lines: 24 In article many people write shell scripts with lines like: echo > .tmp '(set! $* (quote ('$*')))' in them. This has one nasty problem - try doing "cd /; ". You'll find (well, you ought to find) that it dies - you can't create the scratch file you want. Of course, if two people are in the directory you're running in and running that command, you'll have probles too. Instead, try doing: echo > /tmp/runscheme.$$ '(set! $* (quote ('$*')))' This creates a file in /tmp with the process id of the shell executing the script in it's name. That solves both problems at once.