2 Copyright (C) 1995-2011, The AROS Development Team. All rights reserved.
9 void cliEcho(ShellState
*ss
, CONST_STRPTR args
)
14 /* AmigaDOS's shell is content also with echo being set to anything
15 that begins with "on" in order to trigger commands echoing on,
16 it doesn't really have to be set to just "on". */
17 if ((lv
= FindVar("echo", LV_VAR
)) == NULL
)
20 switch (lv
->lv_Value
[0])
24 switch (lv
->lv_Value
[1])
37 /* Ok, commands echoing is on. */
38 /* If a redirection is present, echoing isn't expected to go to
39 it. If a script is running, building commandLine allows us
40 to show what the command line looks like after arguments
42 echoOut
= ss
->newOut
? ss
->oldOut
: Output();
44 FPuts(echoOut
, ss
->command
+ 2);