* commands/cat.c (options): New variable.
(grub_cmd_cat): Parse options. If the --dos option is given, print DOS-style "\r\n" line endings as simple newlines (Debian bug #586358). (GRUB_MOD_INIT): Use extcmd. (GRUB_MOD_FINI): Likewise. * docs/grub.texi (cat): Document --dos.
This commit is contained in:
parent
412e09f355
commit
bbe346529e
3 changed files with 40 additions and 9 deletions
|
@ -1624,13 +1624,19 @@ a menu entry).
|
|||
@node cat
|
||||
@subsection cat
|
||||
|
||||
@deffn Command cat file
|
||||
@deffn Command cat [@option{--dos}] file
|
||||
Display the contents of the file @var{file}. This command may be useful
|
||||
to remind you of your OS's root partition:
|
||||
|
||||
@example
|
||||
grub> @kbd{cat /etc/fstab}
|
||||
@end example
|
||||
|
||||
If the @option{--dos} option is used, then carriage return / new line pairs
|
||||
will be displayed as a simple new line. Otherwise, the carriage return will
|
||||
be displayed as a control character (@samp{<d>}) to make it easier to see
|
||||
when boot problems are caused by a file formatted using DOS-style line
|
||||
endings.
|
||||
@end deffn
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue