This should work on DOS; the only change is from "/dev/null" to "NUL": C:\HOTFIXES-ng>command Microsoft(R) Windows DOS (C)Copyright Microsoft Corp 1990-2001.
C:\HOTFIX~2>echo foo foo
C:\HOTFIX~2>echo foo>NUL
C:\HOTFIX~2>dir NUL
Directory of \.
File Not Found
[granted this is on XP; but it should work anywhere]
---- Original message ----
Date: Thu, 07 Apr 2011 19:16:04 +0200 From: flashrom-bounces+owen=mann.org@flashrom.org (on behalf of Michael Karcher flashrom@mkarcher.dialup.fu-berlin.de) Subject: Re: [flashrom] [PATCH] don't print dmidecode shell error To: Stefan Reinauer stefan.reinauer@coreboot.org Cc: flashrom@flashrom.org
Am Donnerstag, den 07.04.2011, 18:40 +0200 schrieb Stefan Reinauer:
- Michael Karcher flashrom@mkarcher.dialup.fu-berlin.de
Not every OS has a unix command interpreter. This will break on DOS. Most likely fine if DOS is detected per ifdef.
Ok, how about this one?
Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org
Acked-by: Michael Karcher flashrom@mkarcher.dialup.fu-berlin.de
+#if defined (__DJGPP__) || defined (_WIN32)
That might be overly conservative, but I am fine with out. while command.com does not support 2>something, I am quite sure cmd.exe does.
Regards, Michael Karcher
flashrom mailing list flashrom@flashrom.org http://www.flashrom.org/mailman/listinfo/flashrom