URL:
  <http://savannah.gnu.org/bugs/?32448>

                 Summary: Parser problem with variables in compound commands
                 Project: GNU GRUB
            Submitted by: joshtriplett
            Submitted on: Sat 12 Feb 2011 11:12:27 PM PST
                Category: None
                Severity: Major
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: Bazaar - trunk
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

Originally reported as http://bugs.debian.org/612991


grub> for x in 1 2 3 4 5 ; do echo I greet you for the ${x}th time ; done
error: syntax error.
error: Incorrect command.
error: syntax error.

grub> for x in 1 2 3 4 5 ; do echo ${x}th ; done
1th
2th
3th
4th
5th

grub> for x in 1 2 3 4 5 ; do echo ${x}th time ; done
error: syntax error.
error: Incorrect command.
error: syntax error.

grub> for x in 1 2 3 4 5 ; do echo $x th ; done
1 th
2 th
3 th
4 th
5 th

grub> for x in 1 2 3 4 5 ; do echo $x th time ; done
error: syntax error.
error: Incorrect command.
error: syntax error.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32448>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to