Re: [PATCH] test-lib: avoid full path to store test results
- From
Elia Pinto <gitter.spiros@gmail.com>
- Date
- Oct 30, 2012, 22:17 UTC
- Message-ID
- <CA+EOSBmTjwmf+dO-dgU+rGQaVEKDZw7u9ujrh5jYZkPM2zisOA@mail.gmail.com>
- In-Reply-To
- <20121030070152.GA13324@elie.Belkin>
Thanks. I know that posix support these usages, but exists some traditional shell that not support it. These are described in the autoconf manual, last time i have checked. As the construct ; export var = x should be portable, but it is not. If this is important these days i don't know.
Best
2012/10/30, Jonathan Nieder <jrnieder@gmail.com>:
Show 13 quoted lines
> Elia Pinto wrote:
>
>> The shell word splitting done in base is a bashism, iow not portable.
>
> No, ${varname##glob} is in POSIX and we already use it here and there.
> See Documentation/CodingGuidelines:
>
> - We use ${parameter#word} and its [#%] siblings, and their
> doubled "longest matching" form.
>
> Thanks for looking the patch over.
> Jonathan
>-- Inviato dal mio dispositivo mobile