commit-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[2615] 2009-09-26 Colin Watson <address@hidden>


From: Colin Watson
Subject: [2615] 2009-09-26 Colin Watson <address@hidden>
Date: Fri, 25 Sep 2009 23:43:48 +0000

Revision: 2615
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2615
Author:   cjwatson
Date:     2009-09-25 23:43:46 +0000 (Fri, 25 Sep 2009)
Log Message:
-----------
2009-09-26  Colin Watson  <address@hidden>

        * docs/grub.texi (Command-line and menu entry commands): Document
        date and echo commands.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/docs/grub.texi

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-09-24 13:40:40 UTC (rev 2614)
+++ trunk/grub2/ChangeLog       2009-09-25 23:43:46 UTC (rev 2615)
@@ -1,3 +1,8 @@
+2009-09-26  Colin Watson  <address@hidden>
+
+       * docs/grub.texi (Command-line and menu entry commands): Document
+       date and echo commands.
+
 2009-09-24  Pavel Roskin  <address@hidden>
 
        * include/grub/kernel.h (struct grub_module_header): Remove

Modified: trunk/grub2/docs/grub.texi
===================================================================
--- trunk/grub2/docs/grub.texi  2009-09-24 13:40:40 UTC (rev 2614)
+++ trunk/grub2/docs/grub.texi  2009-09-25 23:43:46 UTC (rev 2615)
@@ -1118,6 +1118,8 @@
 * cmp::                         Compare two files
 * configfile::                  Load a configuration file
 * crc::                         Calculate CRC32 checksums
+* date::                        Display or set current date and time
+* echo::                        Display a line of text
 * export::                      Export an environment variable
 * halt::                        Shut down your computer
 * help::                        Show help messages
@@ -1234,6 +1236,62 @@
 @end deffn
 
 
address@hidden date
address@hidden date
+
address@hidden Command date [[year-]month-day] [hour:minute[:second]]
+With no arguments, print the current date and time.
+
+Otherwise, take the current date and time, change any elements specified as
+arguments, and set the result as the new date and time.  For example, `date
+01-01' will set the current month and day to January 1, but leave the year,
+hour, minute, and second unchanged.
address@hidden deffn
+
+
address@hidden echo
address@hidden echo
+
address@hidden Command echo address@hidden address@hidden string @dots{}
+Display the requested text and, unless the @option{-n} option is used, a
+trailing new line.  If there is more than one string, they are separated by
+spaces in the output.  As usual in GRUB commands, variables may be
+substituted using @address@hidden@}}.
+
+The @option{-e} option enables interpretation of backslash escapes.  The
+following sequences are recognised:
+
address@hidden @code
address@hidden \\
+backslash
+
address@hidden \a
+alert (BEL)
+
address@hidden \c
+suppress trailing new line
+
address@hidden \f
+form feed
+
address@hidden \n
+new line
+
address@hidden \r
+carriage return
+
address@hidden \t
+horizontal tab
+
address@hidden \v
+vertical tab
address@hidden table
+
+When interpreting backslash escapes, backslash followed by any other
+character will print that character.
address@hidden deffn
+
+
 @node export
 @subsection export
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]