Every copy of EFI Shell V2.0 that I have found seems to have a file processing 
bug.

It looks like appending to a file does not work as expected.  The following 
shell snippet does not work:

                del test.dat
                echo 1234 >> test.dat                    # This works
                echo 5678 >> test.dat                    # This give "Error. 
Unable to redirect file"

If I modify that shell snippet as follows it works:

                del test.dat
                echo 1234 > test.dat
                echo 5678 >> test.dat

Additionally appending as ASCII also works:

                del test.dat
                echo 1234 >>a  test.dat
                echo 5678 >>a  test.dat

This error carries over to programming interfaces.  If I try to open an 
existing file for append in Python I get an error"

f = open('ExistingFile', 'a')
# ERROR

However, if I open the file in mode 'r+' there is no error:

f = open('ExistingFile', 'r+')
f.seek(0,2)

What is going on here?

Thanks,
Lowell Dennis
Platform Software Engineer
Dell | Business Client
office +1 512 723 8880
    fax +1 512 283 0149

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to