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!
22 * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>)
23 * Remove all hardcode string to En.rc
31 * Perform the SHIFT command.
33 * Only valid inside batch files.
35 * FREEDOS extension : optional parameter DOWN to allow shifting
36 * parameters backwards.
40 INT
cmd_shift (LPTSTR cmd
, LPTSTR param
)
44 DebugPrintf (_T("cmd_shift: (\'%s\', \'%s\')\n"), cmd
, param
);
47 if (!_tcsncmp (param
, _T("/?"), 2))
49 ConOutResPaging(TRUE
,STRING_SHIFT_HELP
);
57 /* not in batch - error!! */
62 if (!_tcsicmp (param
, _T("down")))