[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Problems with echo. (echo period)
From: |
Dave Korn |
Subject: |
RE: Problems with echo. (echo period) |
Date: |
Wed, 18 Apr 2007 09:30:33 +0100 |
On 18 April 2007 05:35, Aaron Shatters wrote:
>> Btw, you can have an empty line with cmd's echo if you say `echo""'.
>
> No, for the cmd.exe shell, echo"" doesn't seem to be working.
It WFM, but it's vital not to use a space:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\dk>echo ""
""
C:\Documents and Settings\dk>echo""
C:\Documents and Settings\dk>
> If not... just add
>
> #ifdef WINDOWS32
> case '.':
> /* Handle special case where echo is immediately following by a '.'
> */ if ((!unixy_shell) &&
> (0 == i) &&
> ((p - line) >= 4) &&
> (0 == strncmp(p-4,"echo",4)))
> {
> goto slow;
> }
> /* intentionally omit break;, fall through to default */
> #endif
>
> in front of
>
> default:
> *ap++ = *p;
> break;
>
> in the "construct_command_argv_internal" function
Far simpler to just add "echo." as an explicit entry in the sh_cmds_dos
array, no?
cheers,
DaveK
--
Can't think of a witty .sigline today....
- Problems with echo. (echo period), Aaron Shatters, 2007/04/17
- Re: Problems with echo. (echo period), Aaron Shatters, 2007/04/18
- RE: Problems with echo. (echo period), Aaron Shatters, 2007/04/18
- RE: Problems with echo. (echo period), Keith Huntington, 2007/04/18
- RE: Problems with echo. (echo period), Keith Huntington, 2007/04/18
Re: Problems with echo. (echo period), Aaron Shatters, 2007/04/19