|
| From: | Felix Zielcke |
| Subject: | [bug #27320] `set' inside `if' behaves wrongly |
| Date: | Wed, 26 Aug 2009 11:02:25 +0000 |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.2) Gecko/20090820 Iceweasel/3.5.2 (Debian-3.5.2-1) |
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/
| [Prev in Thread] | Current Thread | [Next in Thread] |