[flashrom] [PATCH] don't print dmidecode shell error

Owen Mann owen-javanet at rcn.com
Thu Apr 7 19:59:24 CEST 2011


---- Original message ----
>---- Original message ----
>>Date: Thu, 07 Apr 2011 19:16:04 +0200
>>From: flashrom-bounces+owen=mann.org at flashrom.org (on behalf of Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de>)
>>Subject: Re: [flashrom] [PATCH] don't print dmidecode shell error  
>>To: Stefan Reinauer <stefan.reinauer at coreboot.org>
>>Cc: flashrom at flashrom.org
>>
>>Am Donnerstag, den 07.04.2011, 18:40 +0200 schrieb Stefan Reinauer:
>>> * Michael Karcher <flashrom at 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 at coreboot.org>
>>Acked-by: Michael Karcher <flashrom at 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 at flashrom.org
>>http://www.flashrom.org/mailman/listinfo/flashrom
>Date: Thu,  7 Apr 2011 13:28:16 -0400 (EDT)
>From: flashrom-bounces at flashrom.org (on behalf of Owen Mann <owen-javanet at rcn.com>)
>Subject: Re: [flashrom] [PATCH] don't print dmidecode shell error  
>To: flashrom at flashrom.org
>
>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]
>
>_______________________________________________
>flashrom mailing list
>flashrom at flashrom.org
>http://www.flashrom.org/mailman/listinfo/flashrom

Sorry, I missed the "2" (and sorry for the top-post).
This works in command.com (in XP) too:
C:\>cat foo
'CAT' is not recognized as an internal or external command,
operable program or batch file.
C:\>cat foo 2>NUL




More information about the flashrom mailing list