Consider the simple Racket program<br><br>--------------------<br>#lang racket<br>(+ (read) (read))<br>--------------------<br><br>When this is compiled using raco, the executable produced works exactly as intended, reading two integers on standard input and printing their sum. However, when I run the C program<br>
<br>--------------------<br>#include <unistd.h><br>int main()<br>{<br> execl("aplusb","aplusb",(char*)0);<br>}<br>--------------------<br><br>where "aplusb" is the name of the Racket program, it exits immediately with the errors:<br>
<br>--------------------<br>with-input-from-file: expects type <path or string> as 1st argument, given: #f; other arguments were: #<procedure><br><br> === context ===<br>embedded-load<br><br>--------------------<br>
<br>How can I fix this problem? I am using Racket v5.0.1 on Ubuntu 9.10 (i386).<br>