2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /******************************************************************************
43 21.01.2000 SDuvan implemented
45 ******************************************************************************/
47 #include <proto/dos.h>
49 #include <dos/dosextens.h>
50 #include <dos/rdargs.h>
51 #include <dos_commanderrors.h>
53 #include <aros/shcommands.h>
56 AROS_SHA(LONG
*, ,RC
,/N
,NULL
))
60 struct CommandLineInterface
*cli
= Cli();
61 int retval
= RETURN_OK
;
64 if(cli
&& !cli
->cli_Interactive
)
66 struct FileHandle
*fh
= BADDR(cli
->cli_CurrentInput
);
68 fh
->fh_Pos
= fh
->fh_End
+ 1; /* Simulate an EOF */
71 retval
= (int)*SHArg(RC
);
76 PrintFault(ERROR_SCRIPT_ONLY
, "Quit");