Subject: Re: [PATCH] Replace perl code with pure shell code

From: Jakub Narebski <[email-masked]>
Date: Mon, 29 Jan 2007 13:43:54 +0100

Randal L. Schwartz wrote:

>>>>>> "Simon" == Simon 'corecode' Schubert <[email-masked]> 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.

I think ${var#pattern} is a POSIX shell syntax.

Nevertheless Perl embedded in shell script is (a bit) horrible.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git