2 * SHIFT.C - shift internal batch command
7 * 16 Jul 1998 (Hans B Pufal)
10 * 16 Jul 1998 (John P Price)
11 * Separated commands into individual files.
13 * 27-Jul-1998 (John P Price <linux-guru@gcfl.net>)
14 * added config.h include
16 * 07-Jan-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
17 * Added help text ("shift /?") and cleaned up.
19 * 20-Jan-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
20 * Unicode and redirection safe!
34 * Perform the SHIFT command.
36 * Only valid inside batch files.
38 * FREEDOS extension : optional parameter DOWN to allow shifting
39 * parameters backwards.
42 INT cmd_shift (LPTSTR cmd, LPTSTR param)
45 DebugPrintf (_T("cmd_shift: (\'%s\', \'%s\')\n"), cmd, param);
48 if (!_tcsncmp (param, _T("/?"), 2))
50 ConOutPuts (_T("Changes the position of replaceable parameters in a batch file.\n\n"
57 /* not in batch - error!! */
61 if (!_tcsicmp (param, _T("down")))