From: "Carsey, Jaben" <jaben.carsey@intel.com>
To: krishnaLee <sssky307@163.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: question about uefi shell-current working directory and shell-script
Date: Thu, 20 Sep 2018 14:21:58 +0000 [thread overview]
Message-ID: <CB6E33457884FA40993F35157061515CA414086C@FMSMSX103.amr.corp.intel.com> (raw)
In-Reply-To: <ec8df67.af96.165f649103f.Coremail.sssky307@163.com>
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:edk2-devel-bounces@lists.01.org] On Behalf Of
> krishnaLee
> Sent: Thursday, September 20, 2018 2:22 AM
> To: edk2-devel@lists.01.org
> 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
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
next prev parent reply other threads:[~2018-09-20 14:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-20 9:21 question about uefi shell-current working directory and shell-script krishnaLee
2018-09-20 14:21 ` Carsey, Jaben [this message]
2018-09-21 0:30 ` krishnaLee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CB6E33457884FA40993F35157061515CA414086C@FMSMSX103.amr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox