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

Problem with a small program



hello,

I was trying a small program from the paper
	"Es: A shell with higher-order functions" - Haahr and Rakitzis

on my system  "dgux asterix 5.4R3.10 generic AViiON" (asterix is my system's
pet name). The program is as follows ..

;fn hello-world {
return 'hello, world'
}
;echo <>{hello-world}
... At this point instead of getting the result as "hello, world", i get the
following error 
	"bad /dev/fd redirection"

can anyone on suggest a solution for the above problem.

another question i have, is --

	how to execute es programs from a file??
	i typed in above function and the following echo statement in a file,
	changed it's permissions to "a+x". But when i typed the name of this
	file on es prompt, it gave me "Bad Exec format error".

Please send a carbon copy of the solution to "san@cs.unipune.ernet.in" also.

thanks in advance for any help on above two problems.
---
sandeep