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-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub