Re: [PATCH] shell portability: Use sed instead of non-portable variable expansion
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 5, 2011, 08:11 UTC
- Message-ID
- <7vehzvcst5.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4E648031.6050607@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 5 quoted lines
> Am 9/5/2011 9:09, schrieb Junio C Hamano:
>> By the way, t9010 uses ${#parameter} (strlen) which is bashism we forbid,
>> and it needs to be rewritten (David CC'ed).
>
> Actually, no. It is perfectly valid POSIX. So we would need this patch.I know it is in POSIX, but not in the subset we allowed so far. I do not recall the details offhand, but we must have seen some shell that lacked it or something.