[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scheme shellscripts



In article <12601@agate.BERKELEY.EDU> mwm@eris.berkeley.edu (Mike Meyer) writes:
...
>Instead, try doing:
>	echo > /tmp/runscheme.$$ '(set! $* (quote ('$*')))'
>This creates a file in /tmp ...

Um, /tmp is for system programs.  /usr/tmp is the place for user temporary
files.  A number of system V utilities support the convention of trying to
create files in $TMPDIR.  It might be better, then, to do
	scheme_temp=${TMPDIR:-/usr/tmp}/runscheme.$$
	echo '(set! $* (quote ('$*')))' >$scheme_temp
You'll want to keep track of the file name so that you can delete it.