]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/Shell.c
ShellPkg: Update CWD and current mapping when commands return
authorHuajing Li <huajing.li@intel.com>
Mon, 28 Aug 2017 06:12:33 +0000 (14:12 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 30 Aug 2017 03:42:52 +0000 (11:42 +0800)
commitf72df3568f780c9f2a8f5b16cacb1b72b75750d8
tree7c188dbc18d467054488224c31bf0a31b27c69f9
parent055fafe1ce85013f1c868690ad06454a405c6af2
ShellPkg: Update CWD and current mapping when commands return

Some commands may cause current directory or even current mapping
become invalid. For example, "MAP" after unplugging the USB thumb
key may cause current mapping "FS0:" disappear.
This patch updates the CWD and current mapping when commands return.
It also causes the command prompt change to default "Shell>".

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Huajing Li <huajing.li@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Application/Shell/Shell.c