[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #35890] "$@" in grub-script does not follow bash semantics
From: |
Jordan Uggla |
Subject: |
[bug #35890] "$@" in grub-script does not follow bash semantics |
Date: |
Mon, 19 Mar 2012 03:33:39 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7 |
URL:
<http://savannah.gnu.org/bugs/?35890>
Summary: "$@" in grub-script does not follow bash semantics
Project: GNU GRUB
Submitted by: jordanu
Submitted on: Mon 19 Mar 2012 03:33:38 AM GMT
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: None
Planned Release: None
_______________________________________________________
Details:
One should be able to put all arguments passed to a function into a single
(string) variable with all_arguments="$@". With grub-script currently, only
the first argument will be stored in $all. I assume that this happens because
of the way constructs like for arg in "$@" are supported, but it does not
match bash semantics. Example script which gives different results in bash and
grub-script:
function get_all_arguments {
all_arguments="$@"
echo "$all_arguments"
echo "$@"
}
get_all_arguments "argument one" "argument two"
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35890>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #35890] "$@" in grub-script does not follow bash semantics,
Jordan Uggla <=