bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: add --match argument to git-version-gen


From: Stefano Lattarini
Subject: Re: add --match argument to git-version-gen
Date: Sat, 07 Jul 2012 23:02:23 +0200

On 07/07/2012 10:42 PM, Jim Meyering wrote:
> Andy Wingo wrote:
> ...
>> +function massage_git_version() {
>> +    local v=$1
> 
> Using the "function" and "local" keywords would make this script
> fail for some older shells.
>
With the "function" keyword, even recent ones:

  $ dpkg -l dash
  ...
  ii  dash  0.5.5.1-7.4   POSIX-compliant shell

  $ dash -c 'function foo () { :; }'
  dash: Syntax error: "(" unexpected

  $ dash -c 'function foo  { :; }'
  dash: function: not found

Regards,
  Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]