When the shell starts, it the prompt "shell>" or something like "fs0:>"... The 
shell may not have a file system assigned yet so you cannot change directories 
until you pick a file system.

> -----Original Message-----
> From: edk2-devel [mailto:[email protected]] On Behalf Of
> krishnaLee
> Sent: Thursday, September 20, 2018 2:22 AM
> To: [email protected]
> Subject: [edk2] question about uefi shell-current working directory and shell-
> script
> Importance: High
> 
> Hi,
> I wonder if it is a bug:
> I have a usb Fat32-disk,installed with EDK2 shell2.6 or 2.7,
> the root directory has a startup.nsh,the startup.nsh has only one line:"cd \",
> I boot my cannolake machine with this usb disk,
> in the uefi shell,I got a message:"cd: current directory not specified".it 
> means
> the cwd environment variable was not set when start doing script.
> 
> 
> I think it may be  an error,because the uefi shell can find the 
> startup.nsh,why
> not set cwd(current working directory) before execute this script,so the cd
> command works fine.
> I mention it because I found if I put a uefi application(using 
> efi_shell_protocol
> to access .\logfile.txt) in this startup.nsh,the uefi application can't 
> access files,
>  because I found the efi_shell_protocol need cwd to work too,such as
> efi_shell_protocol.OpenFileByName().
> 
> 
> 
> 
> 
> 
> thank you,
> krishna
> 
> 
> 
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to