From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aniFW-0000Wq-FS for mharc-grub-devel@gnu.org; Wed, 06 Apr 2016 03:51:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aniFU-0000Vi-7A for grub-devel@gnu.org; Wed, 06 Apr 2016 03:51:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aniFP-0004E6-87 for grub-devel@gnu.org; Wed, 06 Apr 2016 03:51:36 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::2]:47193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aniFO-0004E2-Ug for grub-devel@gnu.org; Wed, 06 Apr 2016 03:51:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1459929089; l=398; s=domk; d=aepfle.de; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Subject:To:From:Date; bh=CB4AxNBvhXOxaYlqq6pFYFShymxW+DkewUbawyeQe74=; b=GXk/1MaoDpNaPavFDKZ5xPCg/iPpGBZIqN99P6rsp/eFfkmMwKBxnOs3ztAEYJl8K7m ouYoqkawPI7JFHlfiO9tK1MUOe2lRNaRWu5IL+7zuxPtHe19Porl3oXhc9RqHyXCzjeb8 DKIE/xbv7MJGRk87cxUStXKFKRpZMf8bqvY= X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWtqWFmrC5F/k8z92bDrkQ== X-RZG-CLASS-ID: mo00 Received: from aepfle.de (aftr-185-17-206-120.dynamic.mnet-online.de [185.17.206.120]) by post.strato.de (RZmta 37.22 DYNA|AUTH) with ESMTPA id z00824s367jIiC6 for ; Wed, 6 Apr 2016 09:45:18 +0200 (CEST) Date: Wed, 6 Apr 2016 09:45:18 +0200 From: Olaf Hering To: The development of GNU GRUB Subject: Re: missing arguments for script functions Message-ID: <20160406074518.GB4291@aepfle.de> References: <20160331082819.GA24183@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (6601) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2a01:238:20a:202:5300::2 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: Wed, 06 Apr 2016 07:51:37 -0000 On Thu, Mar 31, Andrei Borzenkov wrote: > On Thu, Mar 31, 2016 at 11:28 AM, Olaf Hering wrote: > > Is this supposed to work? > > > > function f() { > > This gives syntax error to me. But > > function f { > echo $1 > } > > works. It does. Not sure what exactly was used in my first attempt which caused the errors. At least now it is working as expected. Olaf