URL:
<http://savannah.gnu.org/bugs/?27320>
Summary: `set' inside `if' behaves wrongly
Project: GNU GRUB
Submitted by: fzielcke
Submitted on: Mi 26 Aug 2009 13:02:24 CEST
Category: None
Severity: Ordinary
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: SVN
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
sh:grub> if x ; then echo true ; else echo false ; fi
false
sh:grub> if x ; then set y=true ; echo $y ; else set y=false echo $y ; fi
true
It should even complain about a syntax error because there's a ; missing
between `set y=false' and `echo $y'
Even with it added it still says true
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27320>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub