From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1alXxu-0007FA-Dn for mharc-grub-devel@gnu.org; Thu, 31 Mar 2016 04:28:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alXxs-0007E2-6B for grub-devel@gnu.org; Thu, 31 Mar 2016 04:28:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alXxn-0007YR-7l for grub-devel@gnu.org; Thu, 31 Mar 2016 04:28:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:47808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alXxn-0007Xq-29 for grub-devel@gnu.org; Thu, 31 Mar 2016 04:28:23 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A8E0EAB5D for ; Thu, 31 Mar 2016 08:28:18 +0000 (UTC) Date: Thu, 31 Mar 2016 10:28:19 +0200 From: Olaf Hering To: grub-devel@gnu.org Subject: missing arguments for script functions Message-ID: <20160331082819.GA24183@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.24 (6598) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2016 08:28:29 -0000 Is this supposed to work? function f() { set x="$1" set y="$2" echo "${x} ${y}" } f "a" "b" f "c" "d" In my testing the positional arguments are not provided to f(). At least when the code above is loaded via 'configfile "${var}"'. Olaf