>>> 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>
Here are my results... ########################################## Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. P:\>echo"" 'echo""' is not recognized as an internal or external command, operable program or batch file. P:\>echo "" "" ########################################## OR Windows XP if you like ########################################## Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. P:\>echo"" 'echo""' is not recognized as an internal or external command, operable program or batch file. P:\>echo "" "" ########################################## >> 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? No, this won't work because it only looks for the command to match if it is immediately followed by a space, tab, or newline. So, for example, "echo.blah" doesn't match "echo." This is a unique cmd.exe command that doesn't require whitespace between the command and the first argument as long as echo is immediately followed by a '.'. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Make-w32 mailing list Make-w32@gnu.org http://lists.gnu.org/mailman/listinfo/make-w32