From: adrian15 <adrian15sgd@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: echo gives internal error with \n
Date: Sun, 17 Jun 2007 13:13:52 +0200 [thread overview]
Message-ID: <46751770.4080807@gmail.com> (raw)
I've activated the echo command (also the pause command) which it is
equivalent to the echo command... and have done some tests:
grub> pause fjfjl
fjfjl
grub> pause "fjfjl"
fjfjl
grub> pause -n \n
error: Internal error
grub> pause \n
error: Internal error
grub> pause -n "\n"
\n
grub> pause -e "\n"
grub> echo fasf
fasf
grub>
Two conclusions from these tests:
1) When you use \n in string that does not begin with " then it gives an
internal error. I do not see anything special on echo.c so I suppose
it's the fault of the parser, however I have not studied the parser
yet... so marco_g what's your opinnion?
2) The -e option is not implemented. :) I've checked the code and it is
not. However I doubt if it's going to work... I ask myself if the grub>
string always appears at the beginning of the line.
pause is equivalent to echo command but if you want to check what I am
saying check my other email that contains a patch for having both echo
and pause commands.
adrian15
next reply other threads:[~2007-06-17 11:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-17 11:13 adrian15 [this message]
2007-07-22 13:27 ` echo gives internal error with \n Marco Gerards
2007-08-03 17:55 ` adrian15
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-all 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=46751770.4080807@gmail.com \
--to=adrian15sgd@gmail.com \
--cc=grub-devel@gnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.