ShellPkg: Add pipe support for parse command
parse reads data from StdIn when pipe is used and does not require –sfo output stored in a file. (e.g.: fs0:\> ls *.nsh –sfo | parse FileInfo 2) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah <tapandshah@hp.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17555 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Provides interface to shell internal functions for shell commands.
|
||||
|
||||
(C) Copyright 2013-2014 Hewlett-Packard Development Company, L.P.<BR>
|
||||
(C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>
|
||||
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@ -1622,7 +1622,6 @@ ShellFileHandleEof(
|
||||
|
||||
gEfiShellProtocol->GetFilePosition(Handle, &Pos);
|
||||
Info = gEfiShellProtocol->GetFileInfo (Handle);
|
||||
ASSERT(Info != NULL);
|
||||
gEfiShellProtocol->SetFilePosition(Handle, Pos);
|
||||
|
||||
if (Info == NULL) {
|
||||
|
Reference in New Issue
Block a user