prism2.device: Compiler delint
[AROS.git] / workbench / c / shellcommands / EndSkip.c
bloba080eb656f51177404b8633b332baf2a74516b68
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 /******************************************************************************
11 NAME
13 EndSkip
15 SYNOPSIS
17 LOCATION
21 FUNCTION
23 INPUTS
25 RESULT
27 NOTES
29 EXAMPLE
31 BUGS
33 SEE ALSO
35 INTERNALS
37 This command is quite similar to EndIf...
39 HISTORY
41 14.01.2000 SDuvan implemented
43 ******************************************************************************/
45 #include <proto/dos.h>
46 #include <dos/dos.h>
47 #include <dos/dosextens.h>
48 #include "dos_commanderrors.h"
50 #include <aros/shcommands.h>
52 AROS_SH0(EndSkip,41.1)
54 AROS_SHCOMMAND_INIT
56 struct CommandLineInterface *cli = Cli();
59 if ((cli != NULL) && (cli->cli_CurrentInput != cli->cli_StandardInput))
61 return RETURN_OK; /* Normal operation: do nothing! */
63 else
65 PrintFault(ERROR_SCRIPT_ONLY, "EndSkip");
67 return RETURN_ERROR;
70 AROS_SHCOMMAND_EXIT