On 1/29/07, Randal L. Schwartz <merlyn@xxxxxxxxxxxxxx> wrote:
>>>>> "Simon" == Simon 'corecode' Schubert <corecode@xxxxxxxxxxxx> writes: Simon> + destname="refs/$branch_top/${name#refs/heads/}" ;; I don't think this is portable shell. At least Perl is the same everywhere. Ignore me if this is a shell syntax on something other than bash.
According to "The Open Group Base Specifications Issue 6" [1]: ${parameter#word} Remove Smallest Prefix Pattern. The word shall be expanded to produce a pattern. The parameter expansion shall then result in parameter, with the smallest portion of the prefix matched by the pattern deleted. We do require a POSIX-compliant version of sh already, right? nikolai [1] http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html