[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make git-version-gen compatible with dash shell
From: |
Paul Eggert |
Subject: |
Re: Make git-version-gen compatible with dash shell |
Date: |
Sun, 8 May 2016 11:21:48 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 |
Mosè Giordano wrote:
> the attached patch makes git-version-gen compatible with dash shell,
> whose shift built-in aborts when there are no more arguments.
Can you explain why that patch is needed? The 'shift' is inside a 'while test $#
-gt 0' loop, so I don't see how $# could be zero there. What's the use case and
behavior without the patch?